public override void Exit(object owner)
        {
            ActionRPG game = owner as ActionRPG;

            if (game != null)
            {
                game.UnloadIntroContent();
            }
        }
        public override void Enter(object owner)
        {
            ActionRPG game = owner as ActionRPG;

            if (game != null)
            {
                game.gameState = GameState.MainGameState;
                game.InitialiseMainGameState();
                game.LoadMainGameContent(true);
            }
        }
Пример #3
0
        public override void Execute(object owner, GameTime gameTime)
        {
            ActionRPG game = owner as ActionRPG;

            if (game == null)
            {
                return;
            }

            game.gameState = GameState.GameOverState;
        }
        public override void Enter(object owner)
        {
            ActionRPG game = owner as ActionRPG;

            if (game != null)
            {
                game.gameState = GameState.IntroState;
                game.InitialiseIntroState();
                game.LoadIntroScreenContent();
                game.SpacePressed = false;
            }
        }