I added a line to the JavaScript version that adds direction facing to the movement. I found the initial script here: [1]
If someone can add a C# version of the line, that would be awesome.