Exemplo n.º 1
0
 void CameraInput()
 {
     if (InputMethod == InputMethod.GamePad)
     {
         float x = Input.GetAxisRaw(GamepadCameraX);
         float y = Input.GetAxisRaw(GamepadCameraY);
         Camera.ProcessInput(new Vector3(x, y, 0), true);
     }
     else
     {
         float x = Input.GetAxisRaw(MouseCameraX);
         float y = Input.GetAxisRaw(MouseCameraY);
         Camera.ProcessInput(new Vector3(x, y, 0), false);
     }
 }