in UnityProject/Assets/Scripts/Client/SimpleController.cs [22:45]
void FixedUpdate()
{
currentMoveX = 0.0f;
currentMoveZ = 0.0f;
// Get the movement input
if (Input.GetKey(KeyCode.UpArrow) || Input.GetKey(KeyCode.W))
{
currentMoveZ = 1.0f;
}
else if (Input.GetKey(KeyCode.DownArrow) || Input.GetKey(KeyCode.S))
{
currentMoveZ = -1.0f;
}
if (Input.GetKey(KeyCode.LeftArrow) || Input.GetKey(KeyCode.A))
{
currentMoveX = -1.0f;
}
else if (Input.GetKey(KeyCode.RightArrow) || Input.GetKey(KeyCode.D))
{
currentMoveX = 1.0f;
}
}