Exemple #1
0
 /// <summary>
 /// Restarts the match by resetting the leaves and calling startmatch
 /// </summary>
 public void RestartMatch()
 {
     game.GetLeafListAsObjects().ForEach(l => l.Die());
     foreach (PlayerServer player in game.playerServerList)
     {
         player.Reset();
         player.playerStats = new PlayerStats();
     }
     matchResetTimer.Reset();
     StartMatch();
 }