示例#1
0
        public void OnMenuClose()
        {
            Console.WriteLine("Menu: OnMenuClosed");
            GameLogicInputController inputController = new GameLogicInputController(this.game);
            InputManager             inputManager    = new InputManager(game);

            game.Components.Add(inputManager);
            game.Components.Add(inputController);
        }
示例#2
0
        public GameLogic(Game game)
            : base(game)
        {
            this.game = (Game1)game;
            Game.Services.AddService(typeof(IGameLogicService), this);
            bool useFile = false;

            this.running      = false;
            this.soundManager = new PuzzleBobbleSoundManager(this.game);
            GameLogicInputController inputController = new GameLogicInputController(this.game);

            game.Components.Add(inputController);
            this.hud = game.Services.GetService(typeof(IHUDService)) as IHUDService;
        }