|
@@ -325,6 +325,7 @@ namespace GFGGame
|
|
|
KeyValuePair<string, IUIView> kv = _viewDic.ElementAt(index);
|
|
|
if (kv.Value.isShowing == true) continue;
|
|
|
// if (kv.Value.packageName == ResPathUtil.GetUIPackagePath("CommonGame") || kv.Value.packageName == ResPathUtil.GetUIPackagePath("Common") || kv.Value.packageName == ResPathUtil.GetUIPackagePath("Main")) return;//这几个包不释放
|
|
|
+ if(_viewDic.Keys.Count <= 10) return; //打开界面小于10个就不销毁了
|
|
|
long currentTime = TimeHelper.ClientNowSeconds();
|
|
|
long closeTime = kv.Value.closeTime;
|
|
|
if (closeTime > 0 && currentTime - closeTime >= TimeUtil.SECOND_PER_MUNITE * 1)
|