Пример #1
0
    public static CoroutineHandler Start_Coroutine(IEnumerator coro)
    {
        GameObject       obj     = new GameObject("CoroutineHandler");
        CoroutineHandler handler = obj.AddComponent <CoroutineHandler>();

        if (handler)
        {
            handler.Coroutine(coro);
        }
        return(handler);
    }