Пример #1
0
 public void ChangeBall()
 {
     if (balls.Count > 1)
     {
         Ball oldBall = balls.Dequeue();
         if (oldBall != null)
         {
             oldBall.SetActivation(false);
             Ball newBall = balls.Peek();
             focusedBall = newBall;
             camMove.ChangeFocus();
             newBall.SetActivation(true);
             AddBall(oldBall);
         }
         else
         {
             Ball newBall = balls.Peek();
             focusedBall = newBall;
             camMove.ChangeFocus();
             newBall.SetActivation(true);
         }
     }
 }