예제 #1
0
        public void EndGame()
        {
            if (!IsGameOver)
            {
                IsGameOver = true;

                foreach (var t in WorldActor.TraitsImplementing <IGameOver>())
                {
                    t.GameOver(this);
                }
                gameInfo.FinalGameTick = WorldTick;
                GameOver();
            }
        }
예제 #2
0
        public void EndGame()
        {
            if (!IsGameOver)
            {
                IsGameOver = true;

                foreach (var t in WorldActor.TraitsImplementing <IGameOver>())
                {
                    t.GameOver(this);
                }

                GameOver();
            }
        }
예제 #3
0
        public void EndGame()
        {
            if (!IsGameOver)
            {
                IsGameOver = true;

                foreach (var t in WorldActor.TraitsImplementing <IGameOver>())
                {
                    t.GameOver(this);
                }

                GameOver();

                Console.WriteLine("Game Over!");
                Game.Exit();
            }
        }