Exemplo n.º 1
0
        private void Init()
        {
            if (null == stateController)
            {
                stateController = new CharcterStateController(this);
            }
            CharacterIdleState idleState = CharacterStateFactory.GetCharacterIdleState();

            stateController.ChangeState(idleState);
        }
Exemplo n.º 2
0
        public void PlayIdleState()
        {
            CharacterIdleState state = CharacterStateFactory.GetCharacterIdleState();

            stateController.ChangeState(state);
        }