コード例 #1
0
 private void NextState()
 {
     m_currentAction.OnActionFinished();
     m_currentActionIndex++;
     m_currentAction = m_actions[m_currentActionIndex];
     m_currentAction.OnActionBegin();
 }
コード例 #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();
     }
 }