zhaoyang 3 rokov pred
rodič
commit
5357647579
64 zmenil súbory, kde vykonal 147 pridanie a 413 odobranie
  1. 5 1
      GameClient/Assets/Editor/Xasset/Simulation/EditorAsset.cs
  2. 17 11
      GameClient/Assets/Game/HotUpdate/DressUp/DressUpUtil.cs
  3. 13 4
      GameClient/Assets/Game/HotUpdate/DressUp/SceneController.cs
  4. 1 0
      GameClient/Assets/Game/HotUpdate/Views/BaseWindow.cs
  5. 0 7
      GameClient/Assets/Game/HotUpdate/Views/Card/CardDetailView.cs
  6. 1 28
      GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs
  7. 0 1
      GameClient/Assets/Game/HotUpdate/Views/Card/CardMoodView.cs
  8. 0 1
      GameClient/Assets/Game/HotUpdate/Views/Card/CardShowView.cs
  9. 0 7
      GameClient/Assets/Game/HotUpdate/Views/Card/CardSkillView.cs
  10. 0 1
      GameClient/Assets/Game/HotUpdate/Views/Card/CardView.cs
  11. 0 6
      GameClient/Assets/Game/HotUpdate/Views/ClothingDecompose/ClothingDecomposeRuleView.cs
  12. 1 12
      GameClient/Assets/Game/HotUpdate/Views/ClothingDecompose/ClothingDecomposeView.cs
  13. 0 1
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingFosterFinishView.cs
  14. 1 6
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingFosterView.cs
  15. 1 7
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingListView.cs
  16. 0 1
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingRenewFinishView.cs
  17. 0 6
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingRewardView.cs
  18. 0 15
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingView.cs
  19. 2 12
      GameClient/Assets/Game/HotUpdate/Views/ClothingShop/ClothingShopView.cs
  20. 2 18
      GameClient/Assets/Game/HotUpdate/Views/ClothingSynthetic/ClothingSyntheticView.cs
  21. 0 7
      GameClient/Assets/Game/HotUpdate/Views/ClothingSynthetic/SuitSyntheticView.cs
  22. 0 1
      GameClient/Assets/Game/HotUpdate/Views/CommonGame/BuyCountView.cs
  23. 2 11
      GameClient/Assets/Game/HotUpdate/Views/CommonGame/GetSuitItemVIew.cs
  24. 0 7
      GameClient/Assets/Game/HotUpdate/Views/CommonGame/RewardView.cs
  25. 0 1
      GameClient/Assets/Game/HotUpdate/Views/DailyTask/DailyTaskView.cs
  26. 1 17
      GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpFightView.cs
  27. 1 18
      GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpView.cs
  28. 1 11
      GameClient/Assets/Game/HotUpdate/Views/DressUp/PhotographView.cs
  29. 0 1
      GameClient/Assets/Game/HotUpdate/Views/Field/FieldFightInfoView.cs
  30. 0 2
      GameClient/Assets/Game/HotUpdate/Views/Field/FieldView.cs
  31. 0 1
      GameClient/Assets/Game/HotUpdate/Views/FieldGuide/FieldGuideView.cs
  32. 1 7
      GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitGuideView.cs
  33. 1 6
      GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitShowView.cs
  34. 1 5
      GameClient/Assets/Game/HotUpdate/Views/Friend/FriendView.cs
  35. 0 1
      GameClient/Assets/Game/HotUpdate/Views/Loading/LoadingView.cs
  36. 1 5
      GameClient/Assets/Game/HotUpdate/Views/Login/LoginView.cs
  37. 1 11
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxBonusView.cs
  38. 0 1
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxCardView.cs
  39. 0 1
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxStarView.cs
  40. 1 6
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs
  41. 1 6
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryCardChoose.cs
  42. 5 6
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterListView.cs
  43. 5 6
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterView.cs
  44. 6 11
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryDialogView.cs
  45. 5 5
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightQuicklyView.cs
  46. 5 10
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightSingleScoreView.cs
  47. 6 10
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightSingleView.cs
  48. 5 10
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightTargetScoreView.cs
  49. 6 10
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightTargetView.cs
  50. 5 6
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryLevelInfoView.cs
  51. 5 5
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryLookBackView.cs
  52. 5 6
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StorySkillView.cs
  53. 5 10
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StroyFightResultView.cs
  54. 5 5
      GameClient/Assets/Game/HotUpdate/Views/MainUI/GMPanelView.cs
  55. 6 10
      GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs
  56. 5 5
      GameClient/Assets/Game/HotUpdate/Views/MainUI/RoleInfoView.cs
  57. 1 2
      GameClient/Assets/Game/HotUpdate/Views/RechargeStore/GiftBagBuyView.cs
  58. 0 1
      GameClient/Assets/Game/HotUpdate/Views/RechargeStore/ItemExchangeView.cs
  59. 1 13
      GameClient/Assets/Game/HotUpdate/Views/RechargeStore/RechargeStoreView.cs
  60. 1 7
      GameClient/Assets/Game/HotUpdate/Views/Studio/StudioBaseView.cs
  61. 0 1
      GameClient/Assets/Game/HotUpdate/Views/Studio/StudioView.cs
  62. 5 1
      GameClient/Assets/Game/HotUpdate/Views/UIView.cs
  63. 1 1
      GameClient/Assets/Game/HotUpdate/Views/ViewManager.cs
  64. 3 1
      GameClient/Assets/ThirdParty/FairyGUI/Scripts/UI/GComponent.cs

+ 5 - 1
GameClient/Assets/Editor/Xasset/Simulation/EditorAsset.cs

@@ -15,7 +15,11 @@ namespace VEngine.Editor.Simulation
         {
             if (asset == null) return;
 
-            if (!(asset is GameObject)) Resources.UnloadAsset(asset);
+            if (!(asset is GameObject))
+            {
+                Resources.UnloadAsset(asset);
+                Resources.UnloadUnusedAssets();
+            }
 
             asset = null;
         }

+ 17 - 11
GameClient/Assets/Game/HotUpdate/DressUp/DressUpUtil.cs

@@ -291,7 +291,7 @@ namespace GFGGame
             return gameObj;
         }
 
-        private static void TryClearSpriteObj(GameObject parentObj, string spritObjName)
+        public static void TryClearSpriteObj(GameObject parentObj, string spritObjName)
         {
             if (parentObj == null)
             {
@@ -303,22 +303,28 @@ namespace GFGGame
                 GameObject gameObj_t = transform_t.gameObject;
                 if (gameObj_t != null)
                 {
-                    GameObject.DestroyImmediate(gameObj_t);
                     //SpriteRenderer spr = null;
                     //spr = gameObj_t.GetComponent<SpriteRenderer>();
                     //if(spr != null)
                     //{
                     //    spr.sprite = null;
                     //}
-                    //var assetDisposer = gameObj_t.GetComponent<AssetReleaser>();
-                    //if(assetDisposer != null)
-                    //{
-                    //    if (!string.IsNullOrEmpty(assetDisposer.resPath))
-                    //    {
-                    //        GFGAsset.Release(assetDisposer.resPath);
-                    //        assetDisposer.resPath = null;
-                    //    }
-                    //}
+                    // var assetDisposer = gameObj_t.GetComponent<AssetReleaser>();
+                    // if (assetDisposer != null)
+                    // {
+                    //     if (!string.IsNullOrEmpty(assetDisposer.resPath))
+                    //     {
+                    //         GFGAsset.Release(assetDisposer.resPath);
+                    //         assetDisposer.resPath = null;
+                    //     }
+                    // }
+                    // SpriteRenderer spr = gameObj_t.GetComponent<SpriteRenderer>();
+                    // if (spr != null)
+                    // {
+                    //     GameObject.Destroy(spr);
+                    // }
+                    GameObject.DestroyImmediate(gameObj_t);
+
                 }
             }
         }

+ 13 - 4
GameClient/Assets/Game/HotUpdate/DressUp/SceneController.cs

@@ -370,8 +370,12 @@ namespace GFGGame
         {
             if (_gameObject != null)
             {
-                GameObject.Destroy(_gameObject);
-                _gameObject = null;
+                SpriteRenderer spr = _gameObject.GetComponent<SpriteRenderer>();
+                if (spr != null)
+                {
+                    DressUpUtil.TryClearSpriteObj(_gameObject, spr.name);
+                    _gameObject = null;
+                }
             }
             _gameObject = DressUpUtil.CreateAnimationObj(res);
             _gameObject.transform.localScale = new Vector3(scale, scale, scale);
@@ -383,6 +387,7 @@ namespace GFGGame
             }
             else
             {
+                GameObject.Destroy(_wrapper.wrapTarget);
                 _wrapper.wrapTarget = _gameObject;//替换资源
             }
             wrapper = _wrapper;
@@ -392,8 +397,12 @@ namespace GFGGame
         {
             if (_gameObject != null)
             {
-                GameObject.Destroy(_gameObject);
-                _gameObject = null;
+                SpriteRenderer spr = _gameObject.GetComponent<SpriteRenderer>();
+                if (spr != null)
+                {
+                    DressUpUtil.TryClearSpriteObj(_gameObject, spr.name);
+                    _gameObject = null;
+                }
             }
             if (goWrapper != null)
             {

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

@@ -75,6 +75,7 @@ namespace GFGGame
 
         public override void Dispose()
         {
+            // if (packageName == ResPathUtil.GetUIPackagePath("CommonGame") || packageName == ResPathUtil.GetUIPackagePath("Common") || packageName == ResPathUtil.GetUIPackagePath("Main")) return;//这几个包不释放
             base.Dispose();
             if (_window != null)
             {

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

@@ -13,13 +13,6 @@ 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();

+ 1 - 28
GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs

@@ -50,32 +50,7 @@ namespace GFGGame
                 _valueBarController = null;
             }
             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();
@@ -198,9 +173,7 @@ namespace GFGGame
             string resPath = ResPathUtil.GetCardAnimationPath(_cardData.resources[_cardData.resIndex]);
             if (Versions.Contains(resPath))
             {
-                _cardObj = DressUpUtil.CreateAnimationObj(resPath);
                 SceneController.AddObjectToView(_cardObj, _wrapper, _ui.m_comCard.m_comCardHolder.m_holder, resPath, out _cardObj, out _wrapper);
-
             }
 
             if (_cardObj != null)

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

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

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

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

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

@@ -16,13 +16,6 @@ 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();

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

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

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

@@ -9,12 +9,6 @@ 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();

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

@@ -24,18 +24,7 @@ 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();

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

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

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

@@ -16,12 +16,7 @@ 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();

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

@@ -19,13 +19,7 @@ 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();

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

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

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

@@ -13,12 +13,6 @@ 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();

+ 0 - 15
GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingView.cs

@@ -30,16 +30,6 @@ 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();
@@ -53,11 +43,6 @@ namespace GFGGame
                 _wrapper.Dispose();
                 _wrapper = null;
             }
-            if (_scenePrefab != null)
-            {
-                GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneSuitFoster"));
-                _scenePrefab = null;
-            }
             SceneController.DestroyObjectFromView(_gameobject1, _wrapper1);
             _propertyList.Clear();
             _addPropertyList.Clear();

+ 2 - 12
GameClient/Assets/Game/HotUpdate/Views/ClothingShop/ClothingShopView.cs

@@ -49,11 +49,7 @@ namespace GFGGame
                 GameObject.Destroy(_sceneObject);
                 _sceneObject = null;
             }
-            if (_scenePrefab != null)
-            {
-                GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneDressUp"));
-                _scenePrefab = null;
-            }
+
             if (_wrapper != null)
             {
                 _wrapper.Dispose();
@@ -70,13 +66,7 @@ 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();

+ 2 - 18
GameClient/Assets/Game/HotUpdate/Views/ClothingSynthetic/ClothingSyntheticView.cs

@@ -62,11 +62,7 @@ namespace GFGGame
                 GameObject.Destroy(_sceneObject);
                 _sceneObject = null;
             }
-            if (_scenePrefab != null)
-            {
-                GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneDressUpSynthetic"));
-                _scenePrefab = null;
-            }
+
             if (_imgSelected != null)
             {
                 _imgSelected.RemoveFromParent();
@@ -82,19 +78,7 @@ 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();

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

@@ -14,13 +14,6 @@ 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();

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

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

+ 2 - 11
GameClient/Assets/Game/HotUpdate/Views/CommonGame/GetSuitItemVIew.cs

@@ -23,23 +23,14 @@ namespace GFGGame
                 GameObject.Destroy(_sceneObject);
                 _sceneObject = null;
             }
-            if (_scenePrefab != null)
-            {
-                GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneDressUp"));
-                _scenePrefab = null;
-            }
+
             SceneController.DestroyObjectFromView(_gameObject1, _wrapper1);
             if (_wrapper != null)
             {
                 _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();

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

@@ -20,13 +20,6 @@ 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();

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

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

+ 1 - 17
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpFightView.cs

@@ -37,23 +37,7 @@ namespace GFGGame
                 GameObject.Destroy(_sceneObject);
                 _sceneObject = null;
             }
-            if (_scenePrefab != null)
-            {
-                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();

+ 1 - 18
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpView.cs

@@ -38,24 +38,7 @@ namespace GFGGame
                 GameObject.Destroy(_sceneObject);
                 _sceneObject = null;
             }
-            if (_scenePrefab != null)
-            {
-                GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneDressUp"));
-                _scenePrefab = null;
-            }
-
-            // 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();

+ 1 - 11
GameClient/Assets/Game/HotUpdate/Views/DressUp/PhotographView.cs

@@ -56,17 +56,7 @@ namespace GFGGame
                 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();

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

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

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

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

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

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

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

@@ -22,13 +22,7 @@ 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 - 6
GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitShowView.cs

@@ -24,11 +24,7 @@ namespace GFGGame
                 GameObject.Destroy(_sceneObject);
                 _sceneObject = null;
             }
-            if (_scenePrefab != null)
-            {
-                GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneDressUp"));
-                _scenePrefab = null;
-            }
+
             if (_wrapper != null)
             {
                 _wrapper.Dispose();
@@ -39,7 +35,6 @@ namespace GFGGame
                 _dressUpObjDataCache.Dispose();
                 _dressUpObjDataCache = null;
             }
-            _ui.m_loaBg.Dispose();
             if (_ui != null)
             {
                 _ui.Dispose();

+ 1 - 5
GameClient/Assets/Game/HotUpdate/Views/Friend/FriendView.cs

@@ -18,11 +18,7 @@ namespace GFGGame
                 GameObject.Destroy(_sceneObject);
                 _sceneObject = null;
             }
-            if (_scenePrefab != null)
-            {
-                GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneFriend"));
-                _scenePrefab = null;
-            }
+
             if (_ui != null)
             {
                 _ui.Dispose();

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

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

+ 1 - 5
GameClient/Assets/Game/HotUpdate/Views/Login/LoginView.cs

@@ -22,11 +22,7 @@ namespace GFGGame
                 GameObject.Destroy(_sceneObject);
                 _sceneObject = null;
             }
-            if (_scenePrefab != null)
-            {
-                GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneMain"));
-                _scenePrefab = null;
-            }
+
             if (_ui != null)
             {
                 _ui.Dispose();

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

@@ -25,17 +25,7 @@ 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();

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

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

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

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

+ 1 - 6
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs

@@ -36,12 +36,7 @@ namespace GFGGame
             SceneController.DestroyObjectFromView(_gameObject1, _wrapper1);
             SceneController.DestroyObjectFromView(_gameObject2, _wrapper2);
             SceneController.DestroyObjectFromView(_gameObject3, _wrapper3);
-            for (int i = 0; i < _ui.m_listBg.numItems; i++)
-            {
-                UI_ComListBgItem item = UI_ComListBgItem.Proxy(_ui.m_listBg.GetChildAt(i));
-                item.m_loaBg.Dispose();
-                UI_ComListBgItem.ProxyEnd();
-            }
+
             if (_ui != null)
             {
                 _ui.Dispose();

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

@@ -22,12 +22,7 @@ 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();

+ 5 - 6
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterListView.cs

@@ -14,12 +14,11 @@ namespace GFGGame
 
         public override void Dispose()
         {
-            _ui.m_loaBg.Dispose();
-            if (_ui != null)
-            {
-                _ui.Dispose();
-                _ui = null;
-            }
+            // if (_ui != null)
+            // {
+            //     _ui.Dispose();
+            //     _ui = null;
+            // }
             base.Dispose();
         }
 

+ 5 - 6
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterView.cs

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

+ 6 - 11
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryDialogView.cs

@@ -45,23 +45,18 @@ namespace GFGGame
                 GameObject.Destroy(_sceneObject);
                 _sceneObject = null;
             }
-            if (_scenePrefab != null)
-            {
-                GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneStoryDialog"));
-                _scenePrefab = null;
-            }
+
             _wordTextField = null;
             _arrow = null;
             _isShowLetters = false;
             SceneController.DestroyObjectFromView(_npcHead, _npcWrapper);
 
             Timers.inst.Remove(UpdateLetters);
-            _ui.m_dialogHead.m_comphead.m_head.Dispose();
-            if (_ui != null)
-            {
-                _ui.Dispose();
-                _ui = null;
-            }
+            // if (_ui != null)
+            // {
+            //     _ui.Dispose();
+            //     _ui = null;
+            // }
         }
 
         protected override void Init()

+ 5 - 5
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightQuicklyView.cs

@@ -23,11 +23,11 @@ namespace GFGGame
         private const int _timeCount = 10;
         public override void Dispose()
         {
-            if (_ui != null)
-            {
-                _ui.Dispose();
-                _ui = null;
-            }
+            // if (_ui != null)
+            // {
+            //     _ui.Dispose();
+            //     _ui = null;
+            // }
             base.Dispose();
         }
         protected override void OnInit()

+ 5 - 10
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightSingleScoreView.cs

@@ -57,11 +57,11 @@ namespace GFGGame
             SceneController.DestroyObjectFromView(_gameObject6, _wrapper6);
             SceneController.DestroyObjectFromView(_gameObject7, _wrapper7);
             SceneController.DestroyObjectFromView(_gameObject8, _wrapper8);
-            if (_ui != null)
-            {
-                _ui.Dispose();
-                _ui = null;
-            }
+            // if (_ui != null)
+            // {
+            //     _ui.Dispose();
+            //     _ui = null;
+            // }
             base.Dispose();
 
         }
@@ -415,11 +415,6 @@ namespace GFGGame
                 GameObject.Destroy(_sceneObject);
                 _sceneObject = null;
             }
-            if (_scenePrefab != null)
-            {
-                GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneFightSingleScore"));
-                _scenePrefab = null;
-            }
 
             Reset();
             Timers.inst.Remove(CheckGuide);

+ 6 - 10
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightSingleView.cs

@@ -16,16 +16,12 @@ namespace GFGGame
                 GameObject.Destroy(_sceneObject);
                 _sceneObject = null;
             }
-            if (_scenePrefab != null)
-            {
-                GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneFightSingle"));
-                _scenePrefab = null;
-            }
-            if (_ui != null)
-            {
-                _ui.Dispose();
-                _ui = null;
-            }
+
+            // if (_ui != null)
+            // {
+            //     _ui.Dispose();
+            //     _ui = null;
+            // }
             base.Dispose();
         }
 

+ 5 - 10
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightTargetScoreView.cs

@@ -98,11 +98,6 @@ namespace GFGGame
                 GameObject.Destroy(_sceneObject);
                 _sceneObject = null;
             }
-            if (_scenePrefab != null)
-            {
-                GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneFightTargetScore"));
-                _scenePrefab = null;
-            }
 
             SceneController.DestroyObjectFromView(_gameObject0, _wrapper0);
             SceneController.DestroyObjectFromView(_gameObject1, _wrapper1);
@@ -128,11 +123,11 @@ namespace GFGGame
                 SceneController.DestroyObjectFromView(_gameObjects[i], _wrappers[i]);
 
             }
-            if (_ui != null)
-            {
-                _ui.Dispose();
-                _ui = null;
-            }
+            // if (_ui != null)
+            // {
+            //     _ui.Dispose();
+            //     _ui = null;
+            // }
             base.Dispose();
         }
         private void AddEffect()

+ 6 - 10
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightTargetView.cs

@@ -16,16 +16,12 @@ namespace GFGGame
                 GameObject.Destroy(_sceneObject);
                 _sceneObject = null;
             }
-            if (_scenePrefab != null)
-            {
-                GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneFightTarget"));
-                _scenePrefab = null;
-            }
-            if (_ui != null)
-            {
-                _ui.Dispose();
-                _ui = null;
-            }
+
+            // if (_ui != null)
+            // {
+            //     _ui.Dispose();
+            //     _ui = null;
+            // }
             base.Dispose();
         }
 

+ 5 - 6
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryLevelInfoView.cs

@@ -17,12 +17,11 @@ namespace GFGGame
         private List<ItemData> _bonusList = new List<ItemData>();
         public override void Dispose()
         {
-            _ui.m_loaderHead.Dispose();
-            if (_ui != null)
-            {
-                _ui.Dispose();
-                _ui = null;
-            }
+            // if (_ui != null)
+            // {
+            //     _ui.Dispose();
+            //     _ui = null;
+            // }
             base.Dispose();
         }
         protected override void OnInit()

+ 5 - 5
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryLookBackView.cs

@@ -18,11 +18,11 @@ namespace GFGGame
         private string _currentData;
         public override void Dispose()
         {
-            if (_ui != null)
-            {
-                _ui.Dispose();
-                _ui = null;
-            }
+            // if (_ui != null)
+            // {
+            //     _ui.Dispose();
+            //     _ui = null;
+            // }
             base.Dispose();
         }
 

+ 5 - 6
GameClient/Assets/Game/HotUpdate/Views/MainStory/StorySkillView.cs

@@ -9,12 +9,11 @@ namespace GFGGame
         private UI_StorySkillUI _ui;
         public override void Dispose()
         {
-            _ui.m_comSkillCard.m_loaCard.Dispose();
-            if (_ui != null)
-            {
-                _ui.Dispose();
-                _ui = null;
-            }
+            // if (_ui != null)
+            // {
+            //     _ui.Dispose();
+            //     _ui = null;
+            // }
             base.Dispose();
         }
         protected override void OnInit()

+ 5 - 10
GameClient/Assets/Game/HotUpdate/Views/MainStory/StroyFightResultView.cs

@@ -39,17 +39,12 @@ namespace GFGGame
                 GameObject.Destroy(_sceneObject);
                 _sceneObject = null;
             }
-            if (_scenePrefab != null)
-            {
-                GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneFightResult"));
-                _scenePrefab = null;
-            }
 
-            if (_ui != null)
-            {
-                _ui.Dispose();
-            }
-            _ui = null;
+            // if (_ui != null)
+            // {
+            //     _ui.Dispose();
+            // }
+            // _ui = null;
 
             base.Dispose();
         }

+ 5 - 5
GameClient/Assets/Game/HotUpdate/Views/MainUI/GMPanelView.cs

@@ -11,11 +11,11 @@ namespace GFGGame
 
         public override void Dispose()
         {
-            if (_ui != null)
-            {
-                _ui.Dispose();
-            }
-            _ui = null;
+            // if (_ui != null)
+            // {
+            //     _ui.Dispose();
+            // }
+            // _ui = null;
             base.Dispose();
         }
 

+ 6 - 10
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -67,16 +67,12 @@ namespace GFGGame
                 GameObject.Destroy(_sceneObject);
                 _sceneObject = null;
             }
-            if (_scenePrefab != null)
-            {
-                GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneMain"));
-                _scenePrefab = null;
-            }
-            if (_ui != null)
-            {
-                _ui.Dispose();
-                _ui = null;
-            }
+
+            // if (_ui != null)
+            // {
+            //     _ui.Dispose();
+            //     _ui = null;
+            // }
             base.Dispose();
         }
 

+ 5 - 5
GameClient/Assets/Game/HotUpdate/Views/MainUI/RoleInfoView.cs

@@ -10,11 +10,11 @@ namespace GFGGame
 
         public override void Dispose()
         {
-            if (_ui != null)
-            {
-                _ui.Dispose();
-            }
-            _ui = null;
+            // if (_ui != null)
+            // {
+            //     _ui.Dispose();
+            // }
+            // _ui = null;
             base.Dispose();
         }
 

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

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

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

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

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

@@ -20,19 +20,7 @@ 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();

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

@@ -24,13 +24,7 @@ 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();

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

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

+ 5 - 1
GameClient/Assets/Game/HotUpdate/Views/UIView.cs

@@ -84,6 +84,7 @@ namespace GFGGame
 
         public virtual void Dispose()
         {
+           
             if (viewCom != null)
             {
                 viewCom.RemoveFromParent();
@@ -92,7 +93,10 @@ namespace GFGGame
             }
             if (_descFilePath != null)
             {
-                GFGUIPackage.RemovePackage(_descFilePath);
+                if (packageName != ResPathUtil.GetUIPackagePath("CommonGame") && packageName != ResPathUtil.GetUIPackagePath("Common") && packageName != ResPathUtil.GetUIPackagePath("Main"))
+                {
+                    GFGUIPackage.RemovePackage(_descFilePath);
+                } //这几个包不释放
             }
             _descFilePath = null;
             viewData = null;

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

@@ -329,7 +329,7 @@ namespace GFGGame
                 int index = i > _viewDic.Keys.Count - 1 ? _viewDic.Keys.Count - 1 : i;//直接去最后一个,不用i是因为关闭一个界面可能会连带关闭其他界面,最终i比_viewDic.Keys.Count大而报错
                 KeyValuePair<string, UIView> 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 (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.05)

+ 3 - 1
GameClient/Assets/ThirdParty/FairyGUI/Scripts/UI/GComponent.cs

@@ -83,7 +83,6 @@ namespace FairyGUI
             if (scrollPane != null)
                 scrollPane.Dispose();
 
-            base.Dispose(); //Dispose native tree first, avoid DisplayObject.RemoveFromParent call
 
             cnt = _children.Count;
             for (int i = cnt - 1; i >= 0; --i)
@@ -93,6 +92,9 @@ namespace FairyGUI
                 obj.Dispose();
             }
 
+            //因list的dispost无法正常释放loader加载的资源,修改第三方代码
+            base.Dispose(); //Dispose native tree first, avoid DisplayObject.RemoveFromParent call
+
 #if FAIRYGUI_TOLUA
             if (_peerTable != null)
             {