Ejemplo n.º 1
0
 public IGameState CreatePlayState(IGameStateController gameStateController, IPlayStateUI playStateUI)
 {
     return(new PlayState(gameStateController, playStateUI));
 }
Ejemplo n.º 2
0
 public PlayState(IGameStateController parentGameStateController, IPlayStateUI playStateUI) : base(parentGameStateController)
 {
     _character      = CharacterFactory.Instance.CreateCharacter();
     _abilityManager = new AbilityManager();
     _playStateUI    = playStateUI;
 }
Ejemplo n.º 3
0
        private void SwitchToPlayState()
        {
            IPlayStateUI playStateUI = StateFactory.Instance.CreatePlayStateUI();

            _parentGameStateController.SwitchGameState(StateFactory.Instance.CreatePlayState(_parentGameStateController, playStateUI));
        }