浏览代码

资源释放

zhaoyang 3 年之前
父节点
当前提交
77614875cc
共有 54 个文件被更改,包括 282 次插入61 次删除
  1. 1 1
      FGUIProject/assets/Card/components/ListCardItem.xml
  2. 二进制
      FGUIProject/assets/ClothingSynthetic/images/hc_bj_1.jpg
  3. 0 1
      FGUIProject/assets/ClothingSynthetic/package.xml
  4. 1 1
      GameClient/Assets/Game/HotUpdate/Data/Handler/RoleDataHandler.cs
  5. 4 4
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Card/UI_ListCardItem.cs
  6. 8 1
      GameClient/Assets/Game/HotUpdate/Views/Card/CardDetailView.cs
  7. 27 4
      GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs
  8. 1 0
      GameClient/Assets/Game/HotUpdate/Views/Card/CardMoodView.cs
  9. 1 0
      GameClient/Assets/Game/HotUpdate/Views/Card/CardShowView.cs
  10. 7 0
      GameClient/Assets/Game/HotUpdate/Views/Card/CardSkillView.cs
  11. 1 0
      GameClient/Assets/Game/HotUpdate/Views/Card/CardView.cs
  12. 6 0
      GameClient/Assets/Game/HotUpdate/Views/ClothingDecompose/ClothingDecomposeRuleView.cs
  13. 12 1
      GameClient/Assets/Game/HotUpdate/Views/ClothingDecompose/ClothingDecomposeView.cs
  14. 1 0
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingFosterFinishView.cs
  15. 6 0
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingFosterView.cs
  16. 7 1
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingListView.cs
  17. 1 0
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingRenewFinishView.cs
  18. 6 0
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingRewardView.cs
  19. 11 1
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingView.cs
  20. 7 0
      GameClient/Assets/Game/HotUpdate/Views/ClothingShop/ClothingShopView.cs
  21. 13 0
      GameClient/Assets/Game/HotUpdate/Views/ClothingSynthetic/ClothingSyntheticView.cs
  22. 7 0
      GameClient/Assets/Game/HotUpdate/Views/ClothingSynthetic/SuitSyntheticView.cs
  23. 1 0
      GameClient/Assets/Game/HotUpdate/Views/CommonGame/BuyCountView.cs
  24. 6 0
      GameClient/Assets/Game/HotUpdate/Views/CommonGame/GetSuitItemVIew.cs
  25. 7 0
      GameClient/Assets/Game/HotUpdate/Views/CommonGame/RewardView.cs
  26. 6 0
      GameClient/Assets/Game/HotUpdate/Views/DailyLogin/DailyLoginView.cs
  27. 1 1
      GameClient/Assets/Game/HotUpdate/Views/DailyTask/DailyTaskView.cs
  28. 12 0
      GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpFightView.cs
  29. 16 2
      GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpView.cs
  30. 26 21
      GameClient/Assets/Game/HotUpdate/Views/DressUp/PhotographView.cs
  31. 1 0
      GameClient/Assets/Game/HotUpdate/Views/Field/FieldFightInfoView.cs
  32. 3 0
      GameClient/Assets/Game/HotUpdate/Views/Field/FieldView.cs
  33. 1 0
      GameClient/Assets/Game/HotUpdate/Views/FieldGuide/FieldGuideView.cs
  34. 7 1
      GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitGuideView.cs
  35. 1 0
      GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitShowView.cs
  36. 1 0
      GameClient/Assets/Game/HotUpdate/Views/Loading/LoadingView.cs
  37. 11 0
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxBonusView.cs
  38. 1 0
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxCardView.cs
  39. 1 0
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxStarView.cs
  40. 6 0
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryCardChoose.cs
  41. 1 0
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterListView.cs
  42. 1 0
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterView.cs
  43. 1 0
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryDialogView.cs
  44. 1 0
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryLevelInfoView.cs
  45. 1 0
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StorySkillView.cs
  46. 2 1
      GameClient/Assets/Game/HotUpdate/Views/RechargeStore/GiftBagBuyView.cs
  47. 1 1
      GameClient/Assets/Game/HotUpdate/Views/RechargeStore/ItemExchangeView.cs
  48. 13 1
      GameClient/Assets/Game/HotUpdate/Views/RechargeStore/RechargeStoreView.cs
  49. 7 1
      GameClient/Assets/Game/HotUpdate/Views/Studio/StudioBaseView.cs
  50. 1 0
      GameClient/Assets/Game/HotUpdate/Views/Studio/StudioView.cs
  51. 1 1
      GameClient/Assets/Game/HotUpdate/Views/ViewManager.cs
  52. 8 8
      GameClient/Assets/Game/Launcher/Xasset/GFGAsset.cs
  53. 二进制
      GameClient/Assets/ResIn/UI/Card/Card_fui.bytes
  54. 8 8
      GameClient/Assets/ThirdParty/Xasset/Runtime/Loadables/Asset.cs

+ 1 - 1
FGUIProject/assets/Card/components/ListCardItem.xml

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <component size="238,477">
   <displayList>
-    <component id="n6_ojlz" name="loaCard" src="jzrr8n" fileName="components/ComCardMask.xml" xy="0,0"/>
+    <component id="n6_ojlz" name="comCard" src="jzrr8n" fileName="components/ComCardMask.xml" xy="0,0"/>
     <image id="n20_pq5x" name="n20" src="pq5x60" fileName="images/kp_dikuang_1.png" xy="2,342"/>
     <loader id="n23_94m1" name="loaBorder" xy="-2,-2" size="242,441" url="ui://7l6lvkay94m19w" autoSize="true"/>
     <loader id="n19_pq5x" name="loaRarity" xy="178,14" size="44,94" url="ui://eg2y0ldpd4iw52" autoSize="true"/>

二进制
FGUIProject/assets/ClothingSynthetic/images/hc_bj_1.jpg


+ 0 - 1
FGUIProject/assets/ClothingSynthetic/package.xml

@@ -42,7 +42,6 @@
     <image id="ja9w1i" name="jiahao.png" path="/images/"/>
     <image id="ja9w1j" name="hc_kuang_6.png" path="/images/" scale="9grid" scale9grid="25,7,50,14"/>
     <component id="lwri1k" name="Component3.xml" path="/components/"/>
-    <image id="842s1l" name="hc_bj_1.jpg" path="/images/"/>
     <image id="f5bl1m" name="hc_kuang_3.png" path="/images/"/>
     <image id="vek81n" name="hc_btkuang.png" path="/images/"/>
     <movieclip id="wet222" name="MovieClip1.jta" path="/effect/"/>

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Data/Handler/RoleDataHandler.cs

@@ -37,7 +37,7 @@ namespace GFGGame
                 CommonSProxy.ResetDailyData().Coroutine();
             }
 
-            if (seconds >= TimeUtil.SECOND_PER_MUNITE * 0.1)
+            if (seconds >= TimeUtil.SECOND_PER_MUNITE * 0.05)
             {
                 ViewManager.CheckDispsoe();
                 seconds = 0;

+ 4 - 4
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Card/UI_ListCardItem.cs

@@ -7,7 +7,7 @@ namespace UI.Card
     public partial class UI_ListCardItem
     {
         public GComponent target;
-        public UI_ComCardMask m_loaCard;
+        public UI_ComCardMask m_comCard;
         public GLoader m_loaBorder;
         public GLoader m_loaRarity;
         public GTextField m_txtLv;
@@ -61,7 +61,7 @@ namespace UI.Card
 
         private void Init(GComponent comp)
         {
-            m_loaCard = (UI_ComCardMask)UI_ComCardMask.Create(comp.GetChild("loaCard"));
+            m_comCard = (UI_ComCardMask)UI_ComCardMask.Create(comp.GetChild("comCard"));
             m_loaBorder = (GLoader)comp.GetChild("loaBorder");
             m_loaRarity = (GLoader)comp.GetChild("loaRarity");
             m_txtLv = (GTextField)comp.GetChild("txtLv");
@@ -71,8 +71,8 @@ namespace UI.Card
         }
         public void Dispose(bool disposeTarget = false)
         {
-            m_loaCard.Dispose();
-            m_loaCard = null;
+            m_comCard.Dispose();
+            m_comCard = null;
             m_loaBorder = null;
             m_loaRarity = null;
             m_txtLv = null;

+ 8 - 1
GameClient/Assets/Game/HotUpdate/Views/Card/CardDetailView.cs

@@ -13,6 +13,13 @@ namespace GFGGame
         private UI_CardDetailUI _ui;
         public override void Dispose()
         {
+            for (int i = 0; i < _ui.m_listCard.numItems; i++)
+            {
+                UI_ListCardItem listItem = UI_ListCardItem.Proxy(_ui.m_listCard.GetChildAt(i));
+                listItem.m_comCard.m_loaCard.Dispose();
+                UI_ListCardItem.ProxyEnd();
+            }
+            _ui.m_loaBg.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();
@@ -79,7 +86,7 @@ namespace GFGGame
             UI_ListCardItem listItem = UI_ListCardItem.Proxy(obj);
             CardData data = (_ui.m_listCard.data as List<CardData>)[index];//CardDataManager.GetCardList(_ui.m_listRole.selectedIndex)[index];
             listItem.target.data = data;
-            listItem.m_loaCard.m_loaCard.url = ResPathUtil.GetCardSmallPath(data.resources[data.resIndex]);
+            listItem.m_comCard.m_loaCard.url = ResPathUtil.GetCardSmallPath(data.resources[data.resIndex]);
             RarityIconController.UpdateRarityIcon(listItem.m_loaRarity, data.itemCfg.id, false);// ResPathUtil.GetCommonGameResPath("kp_sxing_x_" + data.itemCfg.rarity);
             listItem.m_loaMainScore.url = ResPathUtil.GetCommonGameResPath("kp_sx_" + (data.itemCfg.mainScore));
 

+ 27 - 4
GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs

@@ -49,10 +49,33 @@ namespace GFGGame
                 _valueBarController.Dispose();
                 _valueBarController = null;
             }
-
-            UI_ComConsume.ClearProxy();
-
             SceneController.DestroyObjectFromView(_cardObj, _wrapper);
+            _ui.m_loaBg.Dispose();
+            _ui.m_comImgCard.m_ComCardImgRes.m_loaCard.Dispose();
+            for (int i = 0; i < _comFosterBottom.m_listShowCard.numItems; i++)
+            {
+                _comFosterBottom.m_listShowCard.GetChildAt(i).asButton.GetChild("ComStarCard").asCom.GetChild("loaStarCard").asLoader.Dispose();
+            }
+            // for (int i = 0; i < _comFosterBottom.m_listStarConsume.numItems; i++)
+            // {
+            //     UI_ComStarConsume listItem = UI_ComStarConsume.Proxy(_comFosterBottom.m_listStarConsume.GetChildAt(i));
+            //     listItem.m_loaItem.Dispose();
+            //     UI_ComStarConsume.ProxyEnd();
+            // }
+            for (int i = 0; i < _comFosterBottom.m_listSkill.numItems; i++)
+            {
+                UI_ListSkillItem listItem = UI_ListSkillItem.Proxy(_comFosterBottom.m_listSkill.GetChildAt(i));
+                listItem.m_comSkill.m_loaSkill.Dispose();
+                UI_ListSkillItem.ProxyEnd();
+            }
+            // for (int i = 0; i < _comFosterBottom.m_listLvConsume.numItems; i++)
+            // {
+            //     UI_ComConsume listItem = UI_ComConsume.Proxy(_comFosterBottom.m_listLvConsume.GetChildAt(i));
+            //     listItem.m_loaItem.Dispose();
+            //     UI_ComConsume.ProxyEnd();
+            // }
+            //  _comFosterBottom.m_listLvConsume
+            //   UI_ComConsume listItem = UI_ComConsume.Proxy(obj);
             if (_ui != null)
             {
                 _ui.Dispose();
@@ -805,7 +828,7 @@ namespace GFGGame
             Timers.inst.Remove(OnTimedEvent);
             UI_ComCostCurrency.ProxyEnd();
             UI_ComCostCurrencyWithHas.ProxyEnd();
-            _comFosterBottom.m_listLvConsume.numItems = 0;
+            // _comFosterBottom.m_listLvConsume.numItems = 0;
             _valueBarController.OnHide();
         }
         protected override void RemoveEventListener()

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/Card/CardMoodView.cs

@@ -12,6 +12,7 @@ namespace GFGGame
         // Use this for initialization
         public override void Dispose()
         {
+            _ui.m_loaCard.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/Card/CardShowView.cs

@@ -11,6 +11,7 @@ namespace GFGGame
 
         public override void Dispose()
         {
+            _ui.m_loaCard.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 7 - 0
GameClient/Assets/Game/HotUpdate/Views/Card/CardSkillView.cs

@@ -16,6 +16,13 @@ namespace GFGGame
         private PassivitySkillLvlCfg skillLvCfg;
         public override void Dispose()
         {
+            _ui.m_comSkill.m_loaSkill.Dispose();
+            // for (int i = 0; i < _ui.m_listConsume.numItems; i++)
+            // {
+            //     UI_ComStarConsume listItem = UI_ComStarConsume.Proxy(_ui.m_listConsume.GetChildAt(i));
+            //     listItem.m_loaItem.Dispose();
+            //     UI_ComStarConsume.ProxyEnd();
+            // }
             if (_ui != null)
             {
                 _ui.Dispose();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/Card/CardView.cs

@@ -10,6 +10,7 @@ namespace GFGGame
 
         public override void Dispose()
         {
+            _ui.m_loaBg.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 6 - 0
GameClient/Assets/Game/HotUpdate/Views/ClothingDecompose/ClothingDecomposeRuleView.cs

@@ -9,6 +9,12 @@ namespace GFGGame
 
         public override void Dispose()
         {
+            // for (int i = 0; i < _ui.m_listReward.numItems; i++)
+            // {
+            //     UI_ListRewardItem listItem = UI_ListRewardItem.Proxy(_ui.m_listReward.GetChildAt(i));
+            //     listItem.m_loaIcon.Dispose();
+            //     UI_ListRewardItem.ProxyEnd();
+            // }
             if (_ui != null)
             {
                 _ui.Dispose();

+ 12 - 1
GameClient/Assets/Game/HotUpdate/Views/ClothingDecompose/ClothingDecomposeView.cs

@@ -24,7 +24,18 @@ namespace GFGGame
                 _valueBarController.Dispose();
                 _valueBarController = null;
             }
-
+            // for (int i = 0; i < _ui.m_list.numItems; i++)
+            // {
+            //     UI_ListItem listItem = UI_ListItem.Proxy(_ui.m_list.GetChildAt(i));
+            //     listItem.m_loaIcon.Dispose();
+            //     UI_ListItem.ProxyEnd();
+            // }
+            // for (int i = 0; i < _ui.m_listReward.numItems; i++)
+            // {
+            //     UI_ListRewardItem listItem = UI_ListRewardItem.Proxy(_ui.m_listReward.GetChildAt(i));
+            //     listItem.m_loaIcon.Dispose();
+            //     UI_ListRewardItem.ProxyEnd();
+            // }
             if (_ui != null)
             {
                 _ui.Dispose();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingFosterFinishView.cs

@@ -15,6 +15,7 @@ namespace GFGGame
         private SortedList _curPropertyList;
         public override void Dispose()
         {
+            _ui.m_loaBg.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 6 - 0
GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingFosterView.cs

@@ -16,6 +16,12 @@ namespace GFGGame
         private bool _canFoster;
         public override void Dispose()
         {
+            // for (int i = 0; i < _ui.m_listMaterials.numItems; i++)
+            // {
+            //     UI_ListMaterialsItem listItem = UI_ListMaterialsItem.Proxy(_ui.m_listMaterials.GetChildAt(i));
+            //     listItem.m_loaIcon.Dispose();
+            //     UI_ListMaterialsItem.ProxyEnd();
+            // }
             if (_ui != null)
             {
                 _ui.Dispose();

+ 7 - 1
GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingListView.cs

@@ -19,7 +19,13 @@ namespace GFGGame
                 _valueBarController.Dispose();
                 _valueBarController = null;
             }
-
+            _ui.m_loaBg.Dispose();
+            for (int i = 0; i < _ui.m_listSuit.numItems; i++)
+            {
+                UI_ListSuitItem listItem = UI_ListSuitItem.Proxy(_ui.m_listSuit.GetChildAt(i));
+                listItem.m_loaderPic.Dispose();
+                UI_ListSuitItem.ProxyEnd();
+            }
             if (_ui != null)
             {
                 _ui.Dispose();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingRenewFinishView.cs

@@ -8,6 +8,7 @@ namespace GFGGame
         private int _suitId;
         public override void Dispose()
         {
+            _ui.m_loaBg.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 6 - 0
GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingRewardView.cs

@@ -13,6 +13,12 @@ namespace GFGGame
 
         public override void Dispose()
         {
+            // for (int i = 0; i < _ui.m_listReward.numItems; i++)
+            // {
+            //     UI_ListRewardItem listItem = UI_ListRewardItem.Proxy(_ui.m_listReward.GetChildAt(i));
+            //     listItem.m_ComReward.m_loaIcon.Dispose();
+            //     UI_ListRewardItem.ProxyEnd();
+            // }
             if (_ui != null)
             {
                 _ui.Dispose();

+ 11 - 1
GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingView.cs

@@ -30,6 +30,16 @@ namespace GFGGame
 
         public override void Dispose()
         {
+            _ui.m_loaBg.Dispose();
+            // _ui.m_comRenewReward.m_loaReward.Dispose();
+            // _ui.m_comFosterReward.m_loaReward.Dispose();
+            // _ui.m_comRenewRewardGet.m_loaReward.Dispose();
+            // for (int i = 0; i < _ui.m_listRenewMaterial.numItems; i++)
+            // {
+            //     UI_ListMaterialsItem listItem = UI_ListMaterialsItem.Proxy(_ui.m_listRenewMaterial.GetChildAt(i));
+            //     listItem.m_loaIcon.Dispose();
+            //     UI_ListMaterialsItem.ProxyEnd();
+            // }
             if (_ui != null)
             {
                 _ui.Dispose();
@@ -48,7 +58,7 @@ namespace GFGGame
                 GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneSuitFoster"));
                 _scenePrefab = null;
             }
-            SceneController.DestroyObjectFromView(_gameobject1,_wrapper1);
+            SceneController.DestroyObjectFromView(_gameobject1, _wrapper1);
             _propertyList.Clear();
             _addPropertyList.Clear();
 

+ 7 - 0
GameClient/Assets/Game/HotUpdate/Views/ClothingShop/ClothingShopView.cs

@@ -70,6 +70,13 @@ namespace GFGGame
                 _dressUpObjDataCache = null;
             }
             _cfgSelected = null;
+            _ui.m_loaBg.Dispose();
+            // for (int i = 0; i < _ui.m_listShop.numItems; i++)
+            // {
+            //     UI_ShopListItemRender listItem = UI_ShopListItemRender.Proxy(_ui.m_listShop.GetChildAt(i));
+            //     listItem.m_icon.Dispose();
+            //     UI_ShopListItemRender.ProxyEnd();
+            // }
             if (_ui != null)
             {
                 _ui.Dispose();

+ 13 - 0
GameClient/Assets/Game/HotUpdate/Views/ClothingSynthetic/ClothingSyntheticView.cs

@@ -82,6 +82,19 @@ namespace GFGGame
                 _wrapper.Dispose();
                 _wrapper = null;
             }
+            _ui.m_loaBg.Dispose();
+            // for (int i = 0; i < _ui.m_listClothing.numItems; i++)
+            // {
+            //     UI_ClothingListItem listItem = UI_ClothingListItem.Proxy(_ui.m_listClothing.GetChildAt(i));
+            //     listItem.m_loaderIcon.Dispose();
+            //     UI_ClothingListItem.ProxyEnd();
+            // }
+            // for (int i = 0; i < _ui.m_listMaterias.numItems; i++)
+            // {
+            //     UI_MateriasListItem listItem = UI_MateriasListItem.Proxy(_ui.m_listMaterias.GetChildAt(i));
+            //     listItem.m_loaderIcon.Dispose();
+            //     UI_MateriasListItem.ProxyEnd();
+            // }
             if (_ui != null)
             {
                 _ui.Dispose();

+ 7 - 0
GameClient/Assets/Game/HotUpdate/Views/ClothingSynthetic/SuitSyntheticView.cs

@@ -14,6 +14,13 @@ namespace GFGGame
 
         public override void Dispose()
         {
+            _ui.m_loaBg.Dispose();
+            for (int i = 0; i < _ui.m_listSuit.numItems; i++)
+            {
+                UI_SuitListItem listItem = UI_SuitListItem.Proxy(_ui.m_listSuit.GetChildAt(i));
+                listItem.m_loaderPic.Dispose();
+                UI_SuitListItem.ProxyEnd();
+            }
             if (_ui != null)
             {
                 _ui.Dispose();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/CommonGame/BuyCountView.cs

@@ -57,6 +57,7 @@ namespace GFGGame
 
         public override void Dispose()
         {
+            // _ui.m_icon.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 6 - 0
GameClient/Assets/Game/HotUpdate/Views/CommonGame/GetSuitItemVIew.cs

@@ -34,6 +34,12 @@ namespace GFGGame
                 _wrapper.Dispose();
                 _wrapper = null;
             }
+            // for (int i = 0; i < _ui.m_listClothing.numItems; i++)
+            // {
+            //     UI_LuckyBoxBonusItem listItem = UI_LuckyBoxBonusItem.Proxy(_ui.m_listClothing.GetChildAt(i));
+            //     listItem.m_comIcon.m_icon.Dispose();
+            //     UI_LuckyBoxBonusItem.ProxyEnd();
+            // }
             if (_ui != null)
             {
                 _ui.Dispose();

+ 7 - 0
GameClient/Assets/Game/HotUpdate/Views/CommonGame/RewardView.cs

@@ -20,6 +20,13 @@ namespace GFGGame
         private const int maxHeight = 1030;
         public override void Dispose()
         {
+            _ui.m_loaBg.Dispose();
+            // for (int i = 0; i < _ui.m_comListReward.m_listReward.numItems; i++)
+            // {
+            //     UI_ListRewardItem listItem = UI_ListRewardItem.Proxy(_ui.m_comListReward.m_listReward.GetChildAt(i));
+            //     listItem.m_comRewardItem.m_loaIcon.Dispose();
+            //     UI_ListRewardItem.ProxyEnd();
+            // }
             if (_ui != null)
             {
                 _ui.Dispose();

+ 6 - 0
GameClient/Assets/Game/HotUpdate/Views/DailyLogin/DailyLoginView.cs

@@ -15,6 +15,12 @@ namespace GFGGame
 
         public override void Dispose()
         {
+            // for (int i = 0; i < _ui.m_list.numItems; i++)
+            // {
+            //     UI_ListItem listItem = UI_ListItem.Proxy(_ui.m_list.GetChildAt(i));
+            //     listItem.m_loaIcon.Dispose();
+            //     UI_ListItem.ProxyEnd();
+            // }
             if (_ui != null)
             {
                 _ui.Dispose();

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/DailyTask/DailyTaskView.cs

@@ -23,7 +23,7 @@ namespace GFGGame
                 _valueBarController.Dispose();
                 _valueBarController = null;
             }
-
+            _ui.m_loaBg.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 12 - 0
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpFightView.cs

@@ -42,6 +42,18 @@ namespace GFGGame
                 GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneDressUp"));
                 _scenePrefab = null;
             }
+            // for (int i = 0; i < _ui.m_compNeed.m_listTag.numItems; i++)
+            // {
+            //     UI.CommonGame.UI_ListTagItem listItem = UI.CommonGame.UI_ListTagItem.Proxy(_ui.m_compNeed.m_listTag.GetChildAt(i));
+            //     listItem.m_loaTag.Dispose();
+            //     UI.CommonGame.UI_ListTagItem.ProxyEnd();
+            // }
+            // for (int i = 0; i < _ui.m_partsList.m_list.numItems; i++)
+            // {
+            //     UI_PartsListItem listItem = UI_PartsListItem.Proxy(_ui.m_partsList.m_list.GetChildAt(i));
+            //     listItem.m_icon.Dispose();
+            //     UI_PartsListItem.ProxyEnd();
+            // }
             if (_ui != null)
             {
                 _ui.Dispose();

+ 16 - 2
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpView.cs

@@ -43,7 +43,19 @@ namespace GFGGame
                 GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneDressUp"));
                 _scenePrefab = null;
             }
-            UI_TypeItem.ClearProxy();
+
+            // for (int i = 0; i < _ui.m_partsList.m_list.numItems; i++)
+            // {
+            //     UI_PartsListItem listItem = UI_PartsListItem.Proxy(_ui.m_partsList.m_list.GetChildAt(i));
+            //     listItem.m_icon.Dispose();
+            //     UI_PartsListItem.ProxyEnd();
+            // }
+            // for (int i = 0; i < _ui.m_partsList2.m_list.numItems; i++)
+            // {
+            //     UI_PartsListItem listItem = UI_PartsListItem.Proxy(_ui.m_partsList2.m_list.GetChildAt(i));
+            //     listItem.m_icon.Dispose();
+            //     UI_PartsListItem.ProxyEnd();
+            // }
             if (_ui != null)
             {
                 _ui.Dispose();
@@ -78,7 +90,9 @@ namespace GFGGame
             _ui.m_comboBox.onChanged.Add(OnComboBoxChanged);
             _ui.m_comListType1.m_listType.onClickItem.Add(OnClickListType1Item);
             _ui.m_comListType2.m_listType.onClickItem.Add(OnClickListType2Item);
+            // _ui.m_partsList.m_list.SetVirtual();
             _ui.m_partsList.m_list.onClickItem.Add(OnClickPartsListItem);
+            // _ui.m_partsList2.m_list.SetVirtual();
             _ui.m_partsList2.m_list.onClickItem.Add(OnClickSuitPartsListItem);
             _ui.m_touchPad.onClick.Add(OnTouchPad);
             _ui.m_btnDelete.onClick.Add(OnClickBtnDelete);
@@ -129,7 +143,7 @@ namespace GFGGame
             base.OnHide();
             listTypeItem_FreedomDress = null;
             // MusicManager.Instance.Play(ResPathUtil.GetMusicPath(ConstMusicName.DEFAULT));
-            EquipDataCache.cacher.setSceneObj(_sceneObject);//拍照界面断线返回登录,需要重新设置_sceneObject
+            EquipDataCache.cacher.setSceneObj(_sceneObject);//拍照界面断线返回登录,需要重新设置_sceneObject
             EquipDataCache.cacher.TakeOffAll();
 
             if (_sceneObject != null)

+ 26 - 21
GameClient/Assets/Game/HotUpdate/Views/DressUp/PhotographView.cs

@@ -49,8 +49,31 @@ namespace GFGGame
         private PinchGesture pinchGesture;
         private RotationGesture rotationGesture;
 
-
-        // private int maxLayer = int.MinValue;//最上层的层级数
+        public override void Dispose()
+        {
+            if (_sceneObject != null)
+            {
+                GameObject.Destroy(_sceneObject);
+                _sceneObject = null;
+            }
+            if (_scenePrefab != null)
+            {
+                GFGAsset.Release(ResPathUtil.GetPrefabPath("ScenePhotograph"));
+                _scenePrefab = null;
+            }
+            // for (int i = 0; i < _ui.m_ComSelectRes.m_list.numItems; i++)
+            // {
+            //     UI_ListItem listItem = UI_ListItem.Proxy(_ui.m_ComSelectRes.m_list.GetChildAt(i));
+            //     listItem.m_loaIcon.Dispose();
+            //     UI_ListItem.ProxyEnd();
+            // }
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
+            base.Dispose();
+        }
 
         protected override void OnInit()
         {
@@ -576,25 +599,7 @@ namespace GFGGame
 
             Timers.inst.Remove(CheckGuide);
         }
-        public override void Dispose()
-        {
-            if (_sceneObject != null)
-            {
-                GameObject.Destroy(_sceneObject);
-                _sceneObject = null;
-            }
-            if (_scenePrefab != null)
-            {
-                GFGAsset.Release(ResPathUtil.GetPrefabPath("ScenePhotograph"));
-                _scenePrefab = null;
-            }
-            if (_ui != null)
-            {
-                _ui.Dispose();
-                _ui = null;
-            }
-            base.Dispose();
-        }
+
         private void CheckGuide(object param)
         {
             if (GuideDataManager.IsGuideFinish(ConstGuideId.PHOTOGRAPH) <= 0)

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/Field/FieldFightInfoView.cs

@@ -14,6 +14,7 @@ namespace GFGGame
         private int _time = 3;
         public override void Dispose()
         {
+            _ui.m_loaNpc.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 3 - 0
GameClient/Assets/Game/HotUpdate/Views/Field/FieldView.cs

@@ -24,6 +24,9 @@ namespace GFGGame
                 _valueBarController.Dispose();
                 _valueBarController = null;
             }
+            _ui.m_loaBg.Dispose();
+            // _ui.m_loaTaskReward.Dispose();
+
             if (_ui != null)
             {
                 _ui.Dispose();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/FieldGuide/FieldGuideView.cs

@@ -16,6 +16,7 @@ namespace GFGGame
 
         public override void Dispose()
         {
+            _ui.m_loaBg.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 7 - 1
GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitGuideView.cs

@@ -22,7 +22,13 @@ namespace GFGGame
                 _valueBarController.Dispose();
                 _valueBarController = null;
             }
-
+            _ui.m_loaBg.Dispose();
+            for (int i = 0; i < _ui.m_listSuit.numItems; i++)
+            {
+                UI_CompSuitItem listItem = UI_CompSuitItem.Proxy(_ui.m_listSuit.GetChildAt(i));
+                listItem.m_loaderPic.Dispose();
+                UI_CompSuitItem.ProxyEnd();
+            }
             if (_ui != null)
             {
                 _ui.Dispose();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitShowView.cs

@@ -39,6 +39,7 @@ namespace GFGGame
                 _dressUpObjDataCache.Dispose();
                 _dressUpObjDataCache = null;
             }
+            _ui.m_loaBg.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/Loading/LoadingView.cs

@@ -32,6 +32,7 @@ namespace GFGGame
         }
         public override void Dispose()
         {
+            _ui.m_loaBg.Dispose();
             m_Instance = null;
             SceneController.DestroyObjectFromView(_effectObj, _wrapper);
             if (_ui != null)

+ 11 - 0
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxBonusView.cs

@@ -25,6 +25,17 @@ namespace GFGGame
 
             }
             SceneController.DestroyObjectFromView(_effect, _wrapper);
+            _ui.m_loaBg.Dispose();
+            // for (int i = 0; i < 10; i++)
+            // {
+            //     GObject itemObject = _ui.target.GetChild("item" + i);
+            //     UI_LuckyBoxBonusItem listItem = UI_LuckyBoxBonusItem.Proxy(itemObject);
+            //     listItem.m_comIcon.m_icon.Dispose();
+            //     UI_LuckyBoxBonusItem.ProxyEnd();
+            // }
+            // UI_LuckyBoxBonusItem itemUI = UI_LuckyBoxBonusItem.Proxy(_ui.m_itemOne);
+            // itemUI.m_comIcon.m_icon.Dispose();
+            // UI_LuckyBoxBonusItem.ProxyEnd();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxCardView.cs

@@ -24,6 +24,7 @@ namespace GFGGame
         {
             base.Dispose();
             SceneController.DestroyObjectFromView(gameObject, wrapper);
+            // _ui.m_comCard.m_loaIcon.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxStarView.cs

@@ -34,6 +34,7 @@ namespace GFGGame
         private bool showGuide = false;
         public override void Dispose()
         {
+            _ui.m_bg.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 6 - 0
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryCardChoose.cs

@@ -22,6 +22,12 @@ namespace GFGGame
             {
                 SceneController.DestroyObjectFromView(_effects[i], _wrappers[i]);
             }
+            for (int i = 0; i < _ui.m_listCard.numItems; i++)
+            {
+                UI_ListCardItem listItem = UI_ListCardItem.Proxy(_ui.m_listCard.GetChildAt(i));
+                listItem.m_comCardMask.m_loaCard.Dispose();
+                UI_ListCardItem.ProxyEnd();
+            }
             if (_ui != null)
             {
                 _ui.Dispose();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterListView.cs

@@ -14,6 +14,7 @@ namespace GFGGame
 
         public override void Dispose()
         {
+            _ui.m_loaBg.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterView.cs

@@ -25,6 +25,7 @@ namespace GFGGame
                 _valueBarController = null;
             }
             SceneController.DestroyObjectFromView(_gameObject, _wrapper);
+            _compChapter.GetChild("loaBg").asLoader.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryDialogView.cs

@@ -56,6 +56,7 @@ namespace GFGGame
             SceneController.DestroyObjectFromView(_npcHead, _npcWrapper);
 
             Timers.inst.Remove(UpdateLetters);
+            _ui.m_dialogHead.m_comphead.m_head.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryLevelInfoView.cs

@@ -17,6 +17,7 @@ namespace GFGGame
         private List<ItemData> _bonusList = new List<ItemData>();
         public override void Dispose()
         {
+            _ui.m_loaderHead.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/MainStory/StorySkillView.cs

@@ -9,6 +9,7 @@ namespace GFGGame
         private UI_StorySkillUI _ui;
         public override void Dispose()
         {
+            _ui.m_comSkillCard.m_loaCard.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/RechargeStore/GiftBagBuyView.cs

@@ -11,7 +11,8 @@ namespace GFGGame
         private int _giftId;
         public override void Dispose()
         {
-
+            // _ui.m_loaIcon.Dispose();
+            // _ui.m_loaPriceIcon.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/RechargeStore/ItemExchangeView.cs

@@ -13,7 +13,7 @@ namespace GFGGame
         private int _maxCanBuy = 0;
         public override void Dispose()
         {
-
+            // _ui.m_icon.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 13 - 1
GameClient/Assets/Game/HotUpdate/Views/RechargeStore/RechargeStoreView.cs

@@ -20,7 +20,19 @@ namespace GFGGame
                 _valueBarController.Dispose();
                 _valueBarController = null;
             }
-
+            _ui.m_loaBg.Dispose();
+            // for (int i = 0; i < _ui.m_listGift.numItems; i++)
+            // {
+            //     UI_ListGiftItem listItem = UI_ListGiftItem.Proxy(_ui.m_listGift);
+            //     listItem.m_icon.Dispose();
+            //     UI_ListGiftItem.ProxyEnd();
+            // }
+            // for (int i = 0; i < _ui.m_list.numItems; i++)
+            // {
+            //     UI_StoreListItem listItem = UI_StoreListItem.Proxy(_ui.m_list);
+            //     listItem.m_icon.Dispose();
+            //     UI_StoreListItem.ProxyEnd();
+            // }
             if (_ui != null)
             {
                 _ui.Dispose();

+ 7 - 1
GameClient/Assets/Game/HotUpdate/Views/Studio/StudioBaseView.cs

@@ -24,7 +24,13 @@ namespace GFGGame
                 _valueBarController.Dispose();
                 _valueBarController = null;
             }
-
+            _ui.m_loaBg.Dispose();
+            // for (int i = 0; i < _ui.m_list.numItems; i++)
+            // {
+            //     UI_ListItem listItem = UI_ListItem.Proxy(_ui.m_list);
+            //     listItem.m_loaIcon.Dispose();
+            //     UI_ListItem.ProxyEnd();
+            // }
             if (_ui != null)
             {
                 _ui.Dispose();

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/Studio/StudioView.cs

@@ -13,6 +13,7 @@ namespace GFGGame
 
         public override void Dispose()
         {
+            _ui.m_loaBg.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/ViewManager.cs

@@ -332,7 +332,7 @@ namespace GFGGame
                 if (kv.Value.packageName == ResPathUtil.GetUIPackagePath("CommonGame") || kv.Value.packageName == ResPathUtil.GetUIPackagePath("Common") || kv.Value.packageName == ResPathUtil.GetUIPackagePath("Main")) return;//这几个包不释放
                 long currentTime = TimeHelper.ClientNowSeconds();
                 long closeTime = kv.Value.closeTime;
-                if (closeTime > 0 && currentTime - closeTime >= TimeUtil.SECOND_PER_MUNITE * 0.1)
+                if (closeTime > 0 && currentTime - closeTime >= TimeUtil.SECOND_PER_MUNITE * 0.05)
                 {
                     kv.Value.closeTime = 0;
                     kv.Value.Dispose();

+ 8 - 8
GameClient/Assets/Game/Launcher/Xasset/GFGAsset.cs

@@ -9,7 +9,7 @@ namespace GFGGame
     {
         public static T Load<T>(string path) where T : Object
         {
-            //VEngine.Logger.I($"GFGAsset.Load {path} {Random.Range(0, int.MaxValue)}");
+            VEngine.Logger.I($"GFGAsset.Load {path} {Random.Range(0, int.MaxValue)}");
             T t = null;
             if (path.Contains("Asset"))
             {
@@ -31,13 +31,13 @@ namespace GFGGame
             //VEngine.Logger.I($"GFGAsset.Release {path} {Random.Range(0, int.MaxValue)}");
             if (path.Contains("Asset"))
             {
-                int count = 0;
-                if (Asset.CacheCount.TryGetValue(path, out count))
-                {
-                    count--;
-                    Asset.CacheCount[path] = count;
-                }
-                if (count > 0) return;
+                // int count = 0;
+                // if (Asset.CacheCount.TryGetValue(path, out count))
+                // {
+                //     count--;
+                //     Asset.CacheCount[path] = count;
+                // }
+                // if (count > 0) return;
 
                 Asset asset;
                 if (Asset.Cache.TryGetValue(path, out asset))

二进制
GameClient/Assets/ResIn/UI/Card/Card_fui.bytes


+ 8 - 8
GameClient/Assets/ThirdParty/Xasset/Runtime/Loadables/Asset.cs

@@ -81,14 +81,14 @@ namespace VEngine
                 Cache.Add(path, item);
 
             }
-            if (CacheCount.ContainsKey(path))
-            {
-                CacheCount[path] = CacheCount[path] + 1;
-            }
-            else
-            {
-                CacheCount.Add(path, 1);
-            }
+            // if (CacheCount.ContainsKey(path))
+            // {
+            //     CacheCount[path] = CacheCount[path] + 1;
+            // }
+            // else
+            // {
+            //     CacheCount.Add(path, 1);
+            // }
 
             if (completed != null) item.completed += completed;