Beispiel #1
0
        public static GameManager CreateTheGame(AsteroidsGame game)
        {
            if (_gameManager == null)
            {
                _gameManager = new GameManager(game);
            }

            return(_gameManager);
        }
        public static GameManager CreateTheGame(AsteroidsGame game)
        {
            if(_gameManager == null)
            {
                _gameManager = new GameManager(game);
            }

            return _gameManager;
        }
Beispiel #3
0
 private GameManager(AsteroidsGame game)
 {
     _game = game;
 }
Beispiel #4
0
        private void Form1_Load(object sender, EventArgs e)
        {
            _game = new AsteroidsGame(this, _gameController);

            GameManager.CreateTheGame(_game);

            _game.Run();
        }
 private GameManager(AsteroidsGame game)
 {
     _game = game;
 }