Пример #1
0
 public void GenerateRound()
 {
     GameManager.Instance.round++;
     if (GameManager.Instance.pointsInRound == null)
     {
         GameManager.Instance.pointsInRound = new List <PointController>();
     }
     else
     {
         GameManager.Instance.pointsInRound.Clear();
     }
     for (int i = GameManager.Instance.round; i > 0; i--)
     {
         PointController point = GeneratePoint();
         point.SetNumber(i);
         GameManager.Instance.pointsInRound.Add(point);
     }
     GameManager.Instance.pointsInRound.Reverse();
     GameManager.Instance.ChangeRoundState(RoundState.Generating);
 }