Пример #1
0
 public TankGame()
 {
     Log.Info("Game Started");
     if (IsServer)
     {
         timeUntilMatchEnds = 5 * 60;
         new GameHud();
     }
     Instance = this;
 }
Пример #2
0
        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();
        }