public static void Create(IEnumerator iEnumerator, Action action) { GameObject gameObject = new GameObject(); CorotineExecuter corotineExecuter = gameObject.AddComponent <CorotineExecuter>(); if (corotineExecuter != null) { corotineExecuter.Do(iEnumerator, action); } }
public static void Create(AsyncOperation asyncOperation, Action action) { GameObject gameObject = new GameObject("CrortineGameobject"); CorotineExecuter corotineExecuter = gameObject.AddComponent <CorotineExecuter>(); if (corotineExecuter != null) { corotineExecuter.Do(asyncOperation, action); } }