Пример #1
0
 public IEnumerator Cor(object cor, LuaCoroutineCallback callback)
 {
     if (cor is IEnumerator)
     {
         yield return(StartCoroutine((IEnumerator)cor));
     }
     else
     {
         yield return(cor);
     }
     callback();
 }
Пример #2
0
 public void Yield(object cor, LuaCoroutineCallback callback)
 {
     StartCoroutine(Cor(cor, callback));
 }