ClearUICache() публичный статический Метод

清理UI缓存
public static ClearUICache ( ) : void
Результат void
Пример #1
0
 /// <summary>
 /// 退出游戏
 /// </summary>
 void GameEnd()
 {
     LShapUtil.CallScriptFunction(scriptGameInstance, "GameInstance", "End");
     scriptGameInstance = null;
     Global.AssetLoadManager.UnloadAssetBundles();
     UIUtil.ClearUICache();
     Util.ClearMemory();
     //Caching.CleanCache();
 }
Пример #2
0
    void InitializeScene()
    {
        UIUtil.ClearUICache();
        Util.ClearMemory();

        if (OnInitializeScene != null)
        {
            OnInitializeScene.Invoke();
            OnInitializeScene = null;
        }

        StartCoroutine(OnInitializeComplete());
    }