Ejemplo n.º 1
0
    private static void _Init()
    {
        var go = new GameObject();

        go.name = "CoroutineManager";
        _CoroutineManagerMonoBehaviour = go.AddComponent <CoroutineManagerMonoBehaviour>();
        GameObject.DontDestroyOnLoad(go);
    }
Ejemplo n.º 2
0
        static MgrCoroutine()
        {
            var go = new GameObject();

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