예제 #1
0
 IEnumerator CustomActionThread(ScenarioRTL.Action act)
 {
     while (!act.Logic())
     {
         yield return(0);
     }
 }
예제 #2
0
        public void ProcessAction()
        {
            while (m_Raw.Length > m_CurrIndex)
            {
                if (m_CurrAction == null)
                {
                    CreateCurrAction();
                }

                if (m_CurrAction == null)
                {
                    m_CurrIndex++;
                }
                else if (m_CurrAction.Logic())
                {
                    m_CurrAction = null;
                    m_CurrIndex++;
                }
                else
                {
                    break;
                }
            }

            if (isFinished)
            {
                if (onFinished != null)
                {
                    onFinished(this);
                }
            }
        }