Пример #1
0
 /// <summary>
 /// Updates the ball destroyed.
 /// </summary>
 public void UpdateBallDestroyed()
 {
     ballsDestroyed++;
     if (ballsDestroyed % Random.Range(3, 13) == 0 && BallManager.bm.balls.Count > 0)
     {
         fruits.InstaciateFruit();
     }
 }