소스 검색

体力购买清数据

zhaoyang 2 년 전
부모
커밋
3cce6e6486
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      GameClient/Assets/Game/HotUpdate/Controller/GameController.cs
  2. 4 1
      GameClient/Assets/Game/HotUpdate/Data/ItemDataManager.cs

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

@@ -152,6 +152,7 @@ namespace GFGGame
             MainDataManager.Instance.ViewType = 0;
             RoleDataHandler.StopUpdate();
             CardDataManager.Clear();
+            ItemDataManager.Clear();
             DecomposeDataManager.Instance.Clear();
             PhotographDataManager.Instance.Clear();
             SkillDataManager.Instance.Clear();

+ 4 - 1
GameClient/Assets/Game/HotUpdate/Data/ItemDataManager.cs

@@ -9,7 +9,10 @@ namespace GFGGame
         private static Dictionary<int, ItemData> _dataDic = new Dictionary<int, ItemData>();
         private static Dictionary<int, int> _itemExchangeDic = new Dictionary<int, int>();
         delegate object MemberGetDelegate(ItemCfg p);
-
+        public static void Clear()
+        {
+            _itemExchangeDic.Clear();
+        }
         public static void Add(int itemID, long itemNum)
         {
             ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(itemID);