Пример #1
0
 private void RandomColor(int num)
 {
     foreach (PlayerController player in players)
     {
         if (player.playerNum == num)
         {
             if (teamController1.FindPlayer(player))
             {
                 teamController1.RandomColor();
             }
             else
             {
                 teamController2.RandomColor();
             }
         }
     }
 }