Beispiel #1
0
    public static void Create(IEnumerator iEnumerator, Action action)
    {
        GameObject       gameObject       = new GameObject();
        CorotineExecuter corotineExecuter = gameObject.AddComponent <CorotineExecuter>();

        if (corotineExecuter != null)
        {
            corotineExecuter.Do(iEnumerator, action);
        }
    }
Beispiel #2
0
    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);
        }
    }