/// <summary> /// 退出游戏 /// </summary> void GameEnd() { LShapUtil.CallScriptFunction(scriptGameInstance, "GameInstance", "End"); scriptGameInstance = null; Global.AssetLoadManager.UnloadAssetBundles(); UIUtil.ClearUICache(); Util.ClearMemory(); //Caching.CleanCache(); }
void InitializeScene() { UIUtil.ClearUICache(); Util.ClearMemory(); if (OnInitializeScene != null) { OnInitializeScene.Invoke(); OnInitializeScene = null; } StartCoroutine(OnInitializeComplete()); }