private static void _Init() { var go = new GameObject(); go.name = "CoroutineManager"; _CoroutineManagerMonoBehaviour = go.AddComponent <CoroutineManagerMonoBehaviour>(); GameObject.DontDestroyOnLoad(go); }
static MgrCoroutine() { var go = new GameObject(); go.name = "MgrCoroutine"; _CoroutineManagerMonoBehaviour = go.AddComponent <CoroutineManagerMonoBehaviour> (); GameObject.DontDestroyOnLoad(go); }