Ejemplo n.º 1
0
 private void Update()
 {
     if (sceneController.gameState == GameState.BEGIN)
     {
         float translationX = Input.GetAxis("Horizontal") * speed;
         float translationZ = Input.GetAxis("Vertical") * speed;
         translationX *= Time.deltaTime;
         translationZ *= Time.deltaTime;
         sceneController.PlayerMove(new Vector3(translationX, 0, translationZ));
     }
 }