示例#1
0
    void OnDestroy()
    {
        AssetsMgr.GetInst().Uninit();

        CoroutineTaskMgr.GetInst().Uninit();
        LoopUpdateMgr.GetInst().Uninit();
        LogUtils.Log("main ondestory!");
        LogUtils.Uninit();
    }
示例#2
0
    void Start()
    {
        PathUtils.Init();
        LogUtils.Init(PathUtils.GetPersistentPath());

        LogUtils.Log("main start!");

        CoroutineTaskMgr mgr = gameObject.GetComponent <CoroutineTaskMgr>();

        if (mgr == null)
        {
            mgr = gameObject.AddComponent <CoroutineTaskMgr>();
        }
        LoopUpdateMgr looper = gameObject.GetComponent <LoopUpdateMgr>();

        if (looper == null)
        {
            looper = gameObject.AddComponent <LoopUpdateMgr>();
        }
        LoopUpdateMgr.GetInst().Init();
        CoroutineTaskMgr.GetInst().Init();
        VersionUpdate.GetIns().Init();
        VersionUpdate.GetIns().StartStatus(VesionUpdateStatus.Game);
    }