Ejemplo n.º 1
0
 private void GetUserInput()
 {
     if (Input.GetKeyDown(KeyCode.Space))
     {
         _sfxManager.PlayJumpSound();
         ApplyJumpForce();
         transform.rotation = ForwardRotation;
     }
     transform.rotation = Quaternion.Lerp(transform.rotation, DownRotation, tiltDownSpeed * Time.deltaTime);
 }