示例#1
0
 public static void SetActiveGameMode(BaseGameMode newActive, bool serverside)
 {
     if ((bool)newActive)
     {
         newActive.InitScores();
     }
     if (BaseGameMode.GameModeChanged != null)
     {
         BaseGameMode.GameModeChanged(newActive);
     }
     if (serverside)
     {
         svActiveGameMode = newActive;
     }
 }