public void EndGame() { if (!IsGameOver) { IsGameOver = true; foreach (var t in WorldActor.TraitsImplementing <IGameOver>()) { t.GameOver(this); } gameInfo.FinalGameTick = WorldTick; GameOver(); } }
public void EndGame() { if (!IsGameOver) { IsGameOver = true; foreach (var t in WorldActor.TraitsImplementing <IGameOver>()) { t.GameOver(this); } GameOver(); } }
public void EndGame() { if (!IsGameOver) { IsGameOver = true; foreach (var t in WorldActor.TraitsImplementing <IGameOver>()) { t.GameOver(this); } GameOver(); Console.WriteLine("Game Over!"); Game.Exit(); } }