Пример #1
0
 void PlaceBall()
 {
     if (activeCoroutine != null)
     {
         StopCoroutine(activeCoroutine);
     }
     springForce = initialForce;
     if (shouldInstantiate)
     {
         currentBall = Instantiate(cannonBall);
     }
     currentBall.Place(catapultArm.transform, cannonBallPos.position);
     shouldInstantiate = false;
 }