Пример #1
0
 public static CharacterWalkState GetCharacterWalkState()
 {
     if (walkStateQueue.Count > 0)
     {
         return(walkStateQueue.Dequeue());
     }
     else
     {
         CharacterWalkState state = new CharacterWalkState();
         return(state);
     }
 }
Пример #2
0
        public void PlayWalkState()
        {
            CharacterWalkState state = CharacterStateFactory.GetCharacterWalkState();

            stateController.ChangeState(state);
        }