Browse Source

引导数据返回登录后清空

zhaoyang 3 years ago
parent
commit
2af15d8577

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

@@ -160,6 +160,7 @@ namespace GFGGame
             StorageDataManager.Instance.Clear();
             RechargeDataManager.Instance.Clear();
             DressUpMenuItemDataManager.Clear();
+            GuideDataManager.Clear();
             GetSuitItemController.Clear();
             GameGlobal.zoneScene.GetComponent<SessionComponent>()?.Disconnect();
             GameGlobal.zoneScene.GetComponent<ServerInfosComponent>()?.ServerInfoList?.Clear();

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

@@ -11,7 +11,10 @@ namespace GFGGame
 
         private static Dictionary<int, Dictionary<int, int>> _guideDicIndex = new Dictionary<int, Dictionary<int, int>>();
         public static int _currentGuideId;
-
+        public static void Clear()
+        {
+            _guideDicIndex.Clear();
+        }
         public static int currentGuideId
         {
             get