void FixedUpdate()

in UnityProject/Assets/Scripts/Client/SimpleController.cs [22:51]


    void FixedUpdate()
    {
        //Vector3 move = Vector3.zero;

        currentMoveX = 0.0f;
        currentMoveZ = 0.0f;

        // Get the movement input 
        if (Input.GetKey(KeyCode.UpArrow) || Input.GetKey(KeyCode.W))
        {
            //move.z = 1;
            currentMoveZ = 1.0f;
        }
        else if (Input.GetKey(KeyCode.DownArrow) || Input.GetKey(KeyCode.S))
        {
            // move.z = -1;
            currentMoveZ = -1.0f;
        }
        if (Input.GetKey(KeyCode.LeftArrow) || Input.GetKey(KeyCode.A))
        {
            // move.x = -1;
            currentMoveX = -1.0f;
        }
        else if (Input.GetKey(KeyCode.RightArrow) || Input.GetKey(KeyCode.D))
        {
            //move.x = 1;
            currentMoveX = 1.0f;
        }

    }