예제 #1
0
 //Called when something enters the catch zone
 void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "Ball")
     {
         _isTouchingBall = true;
         if (!BallScript.IsHeldByPlayer && _state == SwimmerState.Neutral)
         {
             BallScript.Pickup(this);
         }
     }
 }