Пример #1
0
    private static void _Init()
    {
        var go = new GameObject();

        go.name = "CoroutineManager";
        _CoroutineManagerMonoBehaviour = go.AddComponent <CoroutineManagerMonoBehaviour>();
        GameObject.DontDestroyOnLoad(go);
    }
Пример #2
0
        static MgrCoroutine()
        {
            var go = new GameObject();

            go.name = "MgrCoroutine";
            _CoroutineManagerMonoBehaviour = go.AddComponent <CoroutineManagerMonoBehaviour> ();
            GameObject.DontDestroyOnLoad(go);
        }