示例#1
0
    /// <summary>
    /// 初始化
    /// </summary>
    public static void Init(Transform root)
    {
        if (isInited)
        {
            return;
        }
        isInited = true;

        _threadGO                  = new GameObject();
        _threadGO.name             = "LoadThreadManager(0 / " + maxThread + ")";
        _threadGO.transform.parent = root;
        instance = _threadGO.AddComponent <LoadThreadManager>();
    }
示例#2
0
文件: Core.cs 项目: ghrguse/ss
    /// <summary>
    /// 初始化组件
    /// </summary>
    private void managersInit()
    {
        //Log.info(">> 2.初始化各种组件类");
        //TODO init
        //初始化组件
        this.gameObject.AddComponent <ComponentsInit>();

        //SystemPlugins.Init();
        StageManager.Init();
        VideoMananger.Init(Core.CorePluginRoot);
        SoundManager.InitRoot(Core.CorePluginRoot);
        LoadThreadManager.Init(Core.CorePluginRoot);

        //GameLoop
        GameLoop.Init(Core.CorePluginRoot);
        GameLoop.EnableFrameLoop(true);

        // 协程代理工具
        CoroutineDelegate.Init(Core.CorePluginRoot);
    }