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