public CoroutineExecutor() { var go = new GameObject("CoroutineWorker"); _worker = go.AddComponent <CoroutineWorker>(); instance = this; GameObject.DontDestroyOnLoad(go); }
public CoroutineWorker() { var go = new GameObject("CoroutineWorker"); coroutineWorker = go.AddComponent <CoroutineWorkerMonoBehaviour>(); instance = this; GameObject.DontDestroyOnLoad(go); }
public CoroutineExecuter() { var go = new GameObject("CoroutineWorker"); _worker = go.AddComponent <CoroutineWorker>(); }
public Executor() { GameObject go = new GameObject("CoroutineWorker"); worker = go.AddComponent <CoroutineWorker>(); }
public CoroutineExecuter() { coroutineWorker = new GameObject("CoroutineWorker").AddComponent <CoroutineWorker>(); }
public override void Execute() { Vector2 playerPosition = (Vector2)eventData.data; CoroutineWorker.StarCoroutine(WaitForEndOfFrame(playerPosition)); }
public override void Execute() { Retain(); CoroutineWorker.StarCoroutine(WaitForFrame()); }