Browse Source

ui资源释放

zhaoyang 3 years ago
parent
commit
7dfc54d6c5
88 changed files with 488 additions and 58 deletions
  1. 2 0
      GameClient/Assets/Game/HotUpdate/Controller/GameController.cs
  2. 4 0
      GameClient/Assets/Game/HotUpdate/Controller/LoginController.cs
  3. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Card/CardFilterView.cs
  4. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs
  5. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Card/CardMoodView.cs
  6. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Card/CardShowView.cs
  7. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Card/CardSkillView.cs
  8. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Card/CardStoryView.cs
  9. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Card/CardUpView.cs
  10. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Card/CardView.cs
  11. 5 1
      GameClient/Assets/Game/HotUpdate/Views/ClothingDecompose/ClothingDecomposeRuleView.cs
  12. 5 0
      GameClient/Assets/Game/HotUpdate/Views/ClothingDecompose/ClothingDecomposeView.cs
  13. 5 1
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingFosterFinishView.cs
  14. 5 1
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingFosterView.cs
  15. 5 1
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingListView.cs
  16. 5 1
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingPropertyShowView.cs
  17. 5 1
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingRenewFinishView.cs
  18. 5 1
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingRewardView.cs
  19. 5 1
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingView.cs
  20. 5 0
      GameClient/Assets/Game/HotUpdate/Views/ClothingShop/ClothingShopView.cs
  21. 5 0
      GameClient/Assets/Game/HotUpdate/Views/ClothingSynthetic/ClothingSyntheticView.cs
  22. 5 0
      GameClient/Assets/Game/HotUpdate/Views/ClothingSynthetic/SuitSyntheticView.cs
  23. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Common/Alert/AlertWindow.cs
  24. 9 0
      GameClient/Assets/Game/HotUpdate/Views/Common/ModalStatusView.cs
  25. 5 0
      GameClient/Assets/Game/HotUpdate/Views/CommonGame/BonusBoxDetailView.cs
  26. 5 0
      GameClient/Assets/Game/HotUpdate/Views/CommonGame/BuyConfirmView.cs
  27. 5 0
      GameClient/Assets/Game/HotUpdate/Views/CommonGame/BuyCountView.cs
  28. 5 0
      GameClient/Assets/Game/HotUpdate/Views/CommonGame/BuyTipsView.cs
  29. 9 1
      GameClient/Assets/Game/HotUpdate/Views/CommonGame/DressUpItemTipsView.cs
  30. 5 0
      GameClient/Assets/Game/HotUpdate/Views/CommonGame/FunctionOpenView.cs
  31. 5 1
      GameClient/Assets/Game/HotUpdate/Views/CommonGame/GetSuitItemVIew.cs
  32. 5 0
      GameClient/Assets/Game/HotUpdate/Views/CommonGame/RewardView.cs
  33. 7 2
      GameClient/Assets/Game/HotUpdate/Views/CreateRole/CreateRoleView.cs
  34. 5 0
      GameClient/Assets/Game/HotUpdate/Views/DailyLogin/DailyLoginView.cs
  35. 5 0
      GameClient/Assets/Game/HotUpdate/Views/DailyTask/DailyTaskRewardView.cs
  36. 5 0
      GameClient/Assets/Game/HotUpdate/Views/DailyTask/DailyTaskView.cs
  37. 5 0
      GameClient/Assets/Game/HotUpdate/Views/DressUp/DressFilterView.cs
  38. 5 2
      GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpFightView.cs
  39. 5 0
      GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpView.cs
  40. 5 0
      GameClient/Assets/Game/HotUpdate/Views/DressUp/PhotographSaveView.cs
  41. 5 1
      GameClient/Assets/Game/HotUpdate/Views/DressUp/PhotographView.cs
  42. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Field/FieldFightEndView.cs
  43. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Field/FieldFightInfoView.cs
  44. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Field/FieldTaskView.cs
  45. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Field/FieldView.cs
  46. 5 0
      GameClient/Assets/Game/HotUpdate/Views/FieldGuide/FieldGuideView.cs
  47. 5 0
      GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitGuideView.cs
  48. 5 0
      GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitPartsDetailView.cs
  49. 5 0
      GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitShowView.cs
  50. 5 1
      GameClient/Assets/Game/HotUpdate/Views/Friend/FriendView.cs
  51. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Guide/GuideView.cs
  52. 25 16
      GameClient/Assets/Game/HotUpdate/Views/Loading/LoadingView.cs
  53. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Log/LogView.cs
  54. 8 3
      GameClient/Assets/Game/HotUpdate/Views/Login/FullScreenTextView.cs
  55. 6 1
      GameClient/Assets/Game/HotUpdate/Views/Login/LoginInputView.cs
  56. 6 2
      GameClient/Assets/Game/HotUpdate/Views/Login/LoginView.cs
  57. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Login/RegisterView.cs
  58. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Login/ServerListView.cs
  59. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Login/SystemNoticeView.cs
  60. 5 1
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxBonusView.cs
  61. 5 1
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxCardView.cs
  62. 5 0
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxPreShowView.cs
  63. 5 1
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxStarView.cs
  64. 5 0
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs
  65. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Mail/MailContentView.cs
  66. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Mail/MailView.cs
  67. 5 0
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryCardChoose.cs
  68. 5 0
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterListView.cs
  69. 5 1
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterView.cs
  70. 5 1
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryDialogView.cs
  71. 9 1
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightQuicklyView.cs
  72. 5 1
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightSingleScoreView.cs
  73. 5 1
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightSingleView.cs
  74. 5 0
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightTargetScoreView.cs
  75. 5 1
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightTargetView.cs
  76. 9 1
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryLevelInfoView.cs
  77. 14 5
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryLookBackView.cs
  78. 9 1
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StorySkillView.cs
  79. 5 1
      GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs
  80. 5 1
      GameClient/Assets/Game/HotUpdate/Views/Notice/NoticeActivityShowView.cs
  81. 5 1
      GameClient/Assets/Game/HotUpdate/Views/Notice/NoticeSystemShowView.cs
  82. 5 1
      GameClient/Assets/Game/HotUpdate/Views/Notice/NoticeView.cs
  83. 5 0
      GameClient/Assets/Game/HotUpdate/Views/RoleLvUp/RoleLvUpView.cs
  84. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Studio/StudioBaseView.cs
  85. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Studio/StudioBuyNumView.cs
  86. 5 0
      GameClient/Assets/Game/HotUpdate/Views/Studio/StudioView.cs
  87. 1 0
      GameClient/Assets/Game/HotUpdate/Views/UIView.cs
  88. 5 0
      GameClient/Assets/Game/HotUpdate/Views/XiuFang/XiuFangView.cs

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Controller/GameController.cs

@@ -194,6 +194,8 @@ namespace GFGGame
 
         private static void EnterGame()
         {
+            LoadingView.Instance.GetUI();
+
             LoadingView.Instance.SetProgress(100, () =>
             {
                 ViewManager.Hide<LoadingView>();

+ 4 - 0
GameClient/Assets/Game/HotUpdate/Controller/LoginController.cs

@@ -224,8 +224,12 @@ namespace GFGGame
             ViewManager.Hide<LoginView>();
             ViewManager.Show<LoadingView>();
             // LoadingView.Instance.Open();
+            LoadingView.Instance.GetUI();
             LoadingView.Instance.SetProgress(99);
+            LoadingView.Instance.GetUI();
             LoadingView.Instance.SetDesc("正在进入游戏");
+            LoadingView.Instance.GetUI();
+
             LogServerHelperHttp.SendNodeLog((int)LogNode.StartEnterGame);
             int errorCode = await LoginHelper.GetRealmKey(GameGlobal.zoneScene);
             if (errorCode != ErrorCode.ERR_Success)

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/Card/CardFilterView.cs

@@ -21,6 +21,11 @@ namespace GFGGame
         private SortedList[] _dataList = { ConstCardSubType.CardSubTypeList(), ConstDressUpScoreType.scoreTypeList(), ConstCardState.CardStateList() };
         public override void Dispose()
         {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs

@@ -52,6 +52,11 @@ namespace GFGGame
                 GameObject.Destroy(_cardObj);
                 _cardObj = null;
             }
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 

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

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

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

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

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

@@ -16,6 +16,11 @@ namespace GFGGame
         private PassivitySkillLvlCfg skillLvCfg;
         public override void Dispose()
         {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/Card/CardStoryView.cs

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

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/Card/CardUpView.cs

@@ -17,6 +17,11 @@ namespace GFGGame
         private int _curNum;
         public override void Dispose()
         {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
 
 

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

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

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

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

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/ClothingDecompose/ClothingDecomposeView.cs

@@ -21,6 +21,11 @@ namespace GFGGame
         {
             _valueBarController.Dispose();
             _valueBarController = null;
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 

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

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

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

@@ -16,7 +16,11 @@ namespace GFGGame
         private bool _canFoster;
         public override void Dispose()
         {
-
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 

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

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

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

@@ -16,7 +16,11 @@ namespace GFGGame
         List<KeyValuePair<int, string>> _dataList;// = new List<KeyValuePair<string, int>>();
         public override void Dispose()
         {
-
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 

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

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

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

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

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

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

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

@@ -61,6 +61,11 @@ namespace GFGGame
                 _dressUpObjDataCache = null;
             }
             _cfgSelected = null;
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
 
         }

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

@@ -77,6 +77,11 @@ namespace GFGGame
                 _dressUpObjDataCache.Dispose();
                 _dressUpObjDataCache = null;
             }
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 

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

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

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/Common/Alert/AlertWindow.cs

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

+ 9 - 0
GameClient/Assets/Game/HotUpdate/Views/Common/ModalStatusView.cs

@@ -36,5 +36,14 @@ namespace GFGGame
         {
             base.OnHide();
         }
+        public override void Dispose()
+        {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
+            base.Dispose();
+        }
     }
 }

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/CommonGame/BonusBoxDetailView.cs

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

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/CommonGame/BuyConfirmView.cs

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

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

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

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/CommonGame/BuyTipsView.cs

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

+ 9 - 1
GameClient/Assets/Game/HotUpdate/Views/CommonGame/DressUpItemTipsView.cs

@@ -36,6 +36,14 @@ namespace GFGGame
         {
             base.OnHide();
         }
-
+        public override void Dispose()
+        {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
+            base.Dispose();
+        }
     }
 }

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/CommonGame/FunctionOpenView.cs

@@ -14,6 +14,11 @@ namespace GFGGame
         public override void Dispose()
         {
             SceneController.DestroyObjectFromView(_gameObject);
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 

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

@@ -29,7 +29,11 @@ namespace GFGGame
                 _scenePrefab = null;
             }
             SceneController.DestroyObjectFromView(_gameObject1);
-
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 

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

@@ -20,6 +20,11 @@ namespace GFGGame
         private const int maxHeight = 1030;
         public override void Dispose()
         {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
 
         }

+ 7 - 2
GameClient/Assets/Game/HotUpdate/Views/CreateRole/CreateRoleView.cs

@@ -12,6 +12,11 @@ namespace GFGGame
 
         public override void Dispose()
         {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 
@@ -69,8 +74,8 @@ namespace GFGGame
 
         private async void RandomRoleName()
         {
-            (int result,string name) = await LoginHelper.ReqRandomRoleName();
-            if(result == ErrorCode.ERR_Success)
+            (int result, string name) = await LoginHelper.ReqRandomRoleName();
+            if (result == ErrorCode.ERR_Success)
             {
                 _ui.m_inputName.text = name;
             }

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

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

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/DailyTask/DailyTaskRewardView.cs

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

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

@@ -20,6 +20,11 @@ namespace GFGGame
             base.Dispose();
             _valueBarController.Dispose();
             _valueBarController = null;
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
         }
 
         protected override void OnInit()

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressFilterView.cs

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

+ 5 - 2
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpFightView.cs

@@ -42,8 +42,11 @@ namespace GFGGame
                 GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneDressUp"));
                 _scenePrefab = null;
             }
-            // UI_TypeItem.ClearProxy();
-            // UI_PartsListItem.ClearProxy();
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpView.cs

@@ -44,6 +44,11 @@ namespace GFGGame
                 _scenePrefab = null;
             }
             UI_TypeItem.ClearProxy();
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/DressUp/PhotographSaveView.cs

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

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

@@ -588,7 +588,11 @@ namespace GFGGame
                 GFGAsset.Release(ResPathUtil.GetPrefabPath("ScenePhotograph"));
                 _scenePrefab = null;
             }
-
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
         private void CheckGuide(object param)

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/Field/FieldFightEndView.cs

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

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

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

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/Field/FieldTaskView.cs

@@ -17,6 +17,11 @@ namespace GFGGame
         private string[] difficulty = new string[] { "初级", "中级", "高级" };
         public override void Dispose()
         {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 

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

@@ -21,6 +21,11 @@ namespace GFGGame
             base.Dispose();
             _valueBarController.Dispose();
             _valueBarController = null;
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
         }
 
         protected override void OnInit()

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

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

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitGuideView.cs

@@ -19,6 +19,11 @@ namespace GFGGame
         {
             _valueBarController.Dispose();
             _valueBarController = null;
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitPartsDetailView.cs

@@ -14,6 +14,11 @@ namespace GFGGame
         {
             base.Dispose();
             _items = null;
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
         }
 
         protected override void OnInit()

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

@@ -35,6 +35,11 @@ namespace GFGGame
                 _dressUpObjDataCache.Dispose();
                 _dressUpObjDataCache = null;
             }
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
 
         }

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

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

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/Guide/GuideView.cs

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

+ 25 - 16
GameClient/Assets/Game/HotUpdate/Views/Loading/LoadingView.cs

@@ -32,6 +32,11 @@ namespace GFGGame
         }
         public override void Dispose()
         {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
             SceneController.DestroyObjectFromView(_effectObj);
 
@@ -61,7 +66,10 @@ namespace GFGGame
         {
             base.OnHide();
         }
-
+        public void GetUI()
+        {
+            ET.Log.Debug("loadingui:" + _ui);
+        }
         /// <summary>
         /// 设置描述文字
         /// </summary>
@@ -101,26 +109,27 @@ namespace GFGGame
             }
             if (progress < oldValule)
             {
-                _ui.m_progressBar1.value = progress;
-                float posX = _ui.m_progressBar1.width * (progress / 100) - 70;
-                _ui.m_imgAni.x = Mathf.Min(posX, _ui.target.width - _ui.m_imgAni.width - 70);
-                callback?.Invoke();
+                // _ui.m_progressBar1.value = progress;
+                // float posX = _ui.m_progressBar1.width * (progress / 100) - 70;
+                // _ui.m_imgAni.x = Mathf.Min(posX, _ui.target.width - _ui.m_imgAni.width - 70);
+                // callback?.Invoke();
             }
             else
             {
 
-                float duration = (float)(progress - oldValule) * SPEED;
-                GTweener gtweener = _ui.m_progressBar1.TweenValue(progress, duration).OnUpdate((GTweener t) =>
-                {
-                    float posX = _ui.m_progressBar1.width * (t.value.x / 100) - 70;
-                    _ui.m_imgAni.x = Mathf.Min(posX, _ui.target.width - _ui.m_imgAni.width - 70);
-
-                });
-                if (callback != null)
-                {
-                    gtweener.OnComplete(callback);
-                }
+                // float duration = (float)(progress - oldValule) * SPEED;
+                // GTweener gtweener = _ui.m_progressBar1.TweenValue(progress, duration).OnUpdate((GTweener t) =>
+                // {
+                //     float posX = _ui.m_progressBar1.width * (t.value.x / 100) - 70;
+                //     _ui.m_imgAni.x = Mathf.Min(posX, _ui.target.width - _ui.m_imgAni.width - 70);
+
+                // });
+                // if (callback != null)
+                // {
+                //     gtweener.OnComplete(callback);
+                // }
             }
+            callback?.Invoke();
         }
 
 

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/Log/LogView.cs

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

+ 8 - 3
GameClient/Assets/Game/HotUpdate/Views/Login/FullScreenTextView.cs

@@ -7,9 +7,14 @@ namespace GFGGame
     public class FullScreenTextView : BaseWindow
     {
         private UI_FullScreenTextUI _ui;
-        
+
         public override void Dispose()
         {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 
@@ -36,10 +41,10 @@ namespace GFGGame
             base.OnHide();
             Timers.inst.Remove(Update);
         }
-        
+
         private void Update(object param)
         {
-            if(Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.Home))
+            if (Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.Home))
             {
                 this.Hide();
             }

+ 6 - 1
GameClient/Assets/Game/HotUpdate/Views/Login/LoginInputView.cs

@@ -10,6 +10,11 @@ namespace GFGGame
 
         public override void Dispose()
         {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 
@@ -54,7 +59,7 @@ namespace GFGGame
             {
                 LoginController.Login(account, password).Coroutine();
             }
-            else if(LauncherConfig.netType == LauncherConfig.EnumNetType.LOCAL)
+            else if (LauncherConfig.netType == LauncherConfig.EnumNetType.LOCAL)
             {
                 LoginController.LoginTest(account).Coroutine();
             }

+ 6 - 2
GameClient/Assets/Game/HotUpdate/Views/Login/LoginView.cs

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

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/Login/RegisterView.cs

@@ -16,6 +16,11 @@ namespace GFGGame
             GFGAsset.Release(ResPathUtil.GetTxtPath("serviceProtocal"));
             GFGAsset.Release(ResPathUtil.GetTxtPath("privacyPolicy"));
             GFGAsset.Release(ResPathUtil.GetTxtPath("privacyPolicyChildren"));
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/Login/ServerListView.cs

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

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/Login/SystemNoticeView.cs

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

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

@@ -25,7 +25,11 @@ namespace GFGGame
 
             }
             SceneController.DestroyObjectFromView(_effect);
-
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
         }
 
         protected override void OnInit()

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

@@ -24,7 +24,11 @@ namespace GFGGame
         {
             base.Dispose();
             SceneController.DestroyObjectFromView(gameObject);
-
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
         }
 
         protected override void OnInit()

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxPreShowView.cs

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

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

@@ -33,7 +33,11 @@ namespace GFGGame
         private bool showGuide = false;
         public override void Dispose()
         {
-
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
         protected override void OnHide()

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs

@@ -29,6 +29,11 @@ namespace GFGGame
         {
             _valueBarController.Dispose();
             _valueBarController = null;
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/Mail/MailContentView.cs

@@ -13,6 +13,11 @@ namespace GFGGame
         private MailInfo mailInfo;
         public override void Dispose()
         {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/Mail/MailView.cs

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

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

@@ -22,6 +22,11 @@ namespace GFGGame
             {
                 SceneController.DestroyObjectFromView(_effects[i]);
             }
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
         }
 
         protected override void OnInit()

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

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

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

@@ -25,7 +25,11 @@ namespace GFGGame
                 _valueBarController = null;
             }
             SceneController.DestroyObjectFromView(_gameObject);
-
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 

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

@@ -56,7 +56,11 @@ namespace GFGGame
             SceneController.DestroyObjectFromView(_npcHead);
 
             Timers.inst.Remove(UpdateLetters);
-
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
         }
 
         protected override void Init()

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

@@ -21,7 +21,15 @@ namespace GFGGame
         private int _power;
         private int _fightTimes;
         private const int _timeCount = 10;
-
+        public override void Dispose()
+        {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
+            base.Dispose();
+        }
         protected override void OnInit()
         {
             base.OnInit();

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

@@ -409,7 +409,11 @@ namespace GFGGame
             SceneController.DestroyObjectFromView(_gameObject5);
             SceneController.DestroyObjectFromView(_gameObject6);
             SceneController.DestroyObjectFromView(_gameObject7);
-
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
 
         }

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

@@ -21,7 +21,11 @@ namespace GFGGame
                 GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneFightSingle"));
                 _scenePrefab = null;
             }
-
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 

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

@@ -97,6 +97,11 @@ namespace GFGGame
                 SceneController.DestroyObjectFromView(_gameObjects[i]);
 
             }
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
         private void AddEffect()

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

@@ -21,7 +21,11 @@ namespace GFGGame
                 GFGAsset.Release(ResPathUtil.GetPrefabPath("SceneFightTarget"));
                 _scenePrefab = null;
             }
-
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 

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

@@ -15,7 +15,15 @@ namespace GFGGame
         private int _type;
         private int _storyType;
         private List<ItemData> _bonusList = new List<ItemData>();
-
+        public override void Dispose()
+        {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
+            base.Dispose();
+        }
         protected override void OnInit()
         {
             base.OnInit();

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

@@ -16,6 +16,15 @@ namespace GFGGame
         private bool _isShowLetters;
         private string _currentWords;
         private string _currentData;
+        public override void Dispose()
+        {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
+            base.Dispose();
+        }
 
         protected override void OnInit()
         {
@@ -81,7 +90,7 @@ namespace GFGGame
             }
             else
             {
-                
+
             }
         }
 
@@ -199,7 +208,7 @@ namespace GFGGame
         {
             if (value.Length > 0)
             {
-                
+
             }
         }
 
@@ -207,7 +216,7 @@ namespace GFGGame
         {
             if (value.Length > 0)
             {
-                
+
             }
         }
 
@@ -235,13 +244,13 @@ namespace GFGGame
         {
             if (shakeInfoArr != null && shakeInfoArr.Length > 0)
             {
-                
+
             }
         }
 
         private void Over(bool isSkip = false)
         {
-            
+
         }
 
 

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

@@ -7,7 +7,15 @@ namespace GFGGame
     public class StorySkillView : BaseView
     {
         private UI_StorySkillUI _ui;
-
+        public override void Dispose()
+        {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
+            base.Dispose();
+        }
         protected override void OnInit()
         {
             base.OnInit();

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

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

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

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

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

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

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

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

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/RoleLvUp/RoleLvUpView.cs

@@ -13,6 +13,11 @@ namespace GFGGame
         private int oldLvValue;
         public override void Dispose()
         {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
             base.Dispose();
         }
 

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/Studio/StudioBaseView.cs

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

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/Studio/StudioBuyNumView.cs

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

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

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

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

@@ -69,6 +69,7 @@ namespace GFGGame
                 viewCom.onAddedToStage.Add(__addedToStage);
                 viewCom.onRemovedFromStage.Add(__removeFromStage);
             }
+
         }
 
         public virtual void Dispose()

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/XiuFang/XiuFangView.cs

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