Пример #1
0
    public CoroutineExecutor()
    {
        var go = new GameObject("CoroutineWorker");

        _worker  = go.AddComponent <CoroutineWorker>();
        instance = this;
        GameObject.DontDestroyOnLoad(go);
    }
Пример #2
0
    public CoroutineWorker()
    {
        var go = new GameObject("CoroutineWorker");

        coroutineWorker = go.AddComponent <CoroutineWorkerMonoBehaviour>();
        instance        = this;
        GameObject.DontDestroyOnLoad(go);
    }
Пример #3
0
    public CoroutineExecuter()
    {
        var go = new GameObject("CoroutineWorker");

        _worker = go.AddComponent <CoroutineWorker>();
    }
Пример #4
0
        public Executor()
        {
            GameObject go = new GameObject("CoroutineWorker");

            worker = go.AddComponent <CoroutineWorker>();
        }
Пример #5
0
 public CoroutineExecuter()
 {
     coroutineWorker = new GameObject("CoroutineWorker").AddComponent <CoroutineWorker>();
 }
Пример #6
0
    public override void Execute()
    {
        Vector2 playerPosition = (Vector2)eventData.data;

        CoroutineWorker.StarCoroutine(WaitForEndOfFrame(playerPosition));
    }
Пример #7
0
 public override void Execute()
 {
     Retain();
     CoroutineWorker.StarCoroutine(WaitForFrame());
 }