static void Main() { Ladder ladder = new Ladder(); Random rand = new Random(); while (1 == 1) { Game game = new Game(rand, ladder); } }
public static Game Instance(IPlayer player, IRenderer renderer, IScoreBoardObserver scoreboard, LabyrinthProcesor processor) { if (gameInstance == null) { lock (syncLock) { if (gameInstance == null) { gameInstance = new Game(player, renderer, scoreboard, processor); } } } return gameInstance; }