IEnumerator CustomActionThread(ScenarioRTL.Action act) { while (!act.Logic()) { yield return(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); } } }