Пример #1
0
 void UpdateShoot()
 {
     if (BallScript.IsHeldByPlayer && Input.GetAxis(ShootAxisName) > 0f && (_ballObject.transform.parent.parent == transform || _isTouchingBall))
     {
         BallScript.Shoot(_heading * BaseShootPower);
         SetState(SwimmerState.ShootRecovery);
     }
 }