public TankGame() { Log.Info("Game Started"); if (IsServer) { timeUntilMatchEnds = 5 * 60; new GameHud(); } Instance = this; }
public void CheckForMatchEnd() { TimeUntilMatchEnds = timeUntilMatchEnds; if (timeUntilMatchEnds > 0) { return; } timeUntilMatchEnds = 60 * 60; // Set timer to high value so it isn't tripped again IsEndGame = true; new EndGameManager(); }