//удаление мяча public void RemoveBall(BallMove ball) { ball.BallReturnEvent -= ReturnBall; ball.TakeNewBallEvent -= AddExtraBall; ballList.Remove(ball); if (countExtraBalls > 0) { countExtraBalls--; } }
void SubscriptionBallEvent(BallMove ball) { ball.BallReturnEvent += ReturnBall; ball.TakeNewBallEvent += AddExtraBall; ball.LandingBall += SetNewPositionSpawnPoint; }