示例#1
0
 void LateUpdate()
 {
     if (!GameManager.gameOver)
     {
         _movement.Gravity();
         _movement.Jump();
         _movement.Run();
         if (_fireInput.CheckFireDown())
         {
             _rayProvider.FireRay("Target");
         }
         if (_movement.OutOfBound())
         {
             GameManager.GameOver();
         }
         _mouseLook.Move();
         _mouseLook.LockCursor();
     }
     else
     {
         _movement.ResetPosition();
         _mouseLook.UnlockCursor();
     }
 }