public IEnumerator Cor(object cor, LuaCoroutineCallback callback) { if (cor is IEnumerator) { yield return(StartCoroutine((IEnumerator)cor)); } else { yield return(cor); } callback(); }
public void Yield(object cor, LuaCoroutineCallback callback) { StartCoroutine(Cor(cor, callback)); }