Esempio n. 1
0
 private void NextState()
 {
     m_currentAction.OnActionFinished();
     m_currentActionIndex++;
     m_currentAction = m_actions[m_currentActionIndex];
     m_currentAction.OnActionBegin();
 }
Esempio n. 2
0
 public virtual void OnStateEnter()
 {
     m_currentAction = m_actions[0];
     for (int i = 0; i < m_actions.Length; i++)
     {
         m_actions[i].CurrentStoryStateBase = this;
         m_currentAction.OnActionBegin();
     }
 }
Esempio n. 3
0
 public void FinisheAction(StoryAction stroyAction)
 {
     stroyAction.OnActionFinished();
     if (m_currentActionIndex + 1 < m_actions.Length)
     {
         NextState();
     }
     else
     {
         m_currentAction = null;
     }
 }
Esempio n. 4
0
 public virtual void FinishAction(StoryAction action)
 {
     m_currentStoryStateBase.FinisheAction(action);
 }