Пример #1
0
        //удаление мяча
        public void RemoveBall(BallMove ball)
        {
            ball.BallReturnEvent  -= ReturnBall;
            ball.TakeNewBallEvent -= AddExtraBall;

            ballList.Remove(ball);

            if (countExtraBalls > 0)
            {
                countExtraBalls--;
            }
        }
Пример #2
0
 void SubscriptionBallEvent(BallMove ball)
 {
     ball.BallReturnEvent  += ReturnBall;
     ball.TakeNewBallEvent += AddExtraBall;
     ball.LandingBall      += SetNewPositionSpawnPoint;
 }