コード例 #1
0
    private static void _Init()
    {
        var go = new GameObject();

        go.name = "CoroutineManager";
        _CoroutineManagerMonoBehaviour = go.AddComponent <CoroutineManagerMonoBehaviour>();
        GameObject.DontDestroyOnLoad(go);
    }
コード例 #2
0
ファイル: MgrCoroutine.cs プロジェクト: SES-xuelan/XLAF
        static MgrCoroutine()
        {
            var go = new GameObject();

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