Browse Source

副本扫描脚本fix

guodong 3 years ago
parent
commit
e800f53f05

+ 2 - 2
GameClient/Assets/Editor/Excel/Scanner/GiftBagScanner.cs

@@ -5,8 +5,8 @@ using GFGGame;
 namespace GFGEditor
 {
     public class GiftBagScanner
-    {//计算每个副本的关卡数
-        // private static Dictionary<int, int> levelCountDIc = new Dictionary<int, int>();
+    {
+
         public static void StartScan()
         {
             var dataArray = GiftBagCfgArray.Instance.dataArray;

+ 1 - 0
GameClient/Assets/Editor/Excel/Scanner/InstanceZonesScanner.cs

@@ -12,6 +12,7 @@ namespace GFGEditor
         private static Dictionary<int, int> levelCountDIc = new Dictionary<int, int>();
         public static void StartScan()
         {
+            levelCountDIc.Clear();
             var dataArray = StoryLevelCfgArray.Instance.dataArray;
             SQLiteHelper.Instance.OpenConnection();
             try

+ 0 - 2
GameClient/Assets/Editor/Excel/Scanner/ShopScanner.cs

@@ -10,8 +10,6 @@ namespace GFGEditor
 {
     public class ShopScanner
     {
-        //计算每个副本的关卡数
-        private static Dictionary<int, int> levelCountDIc = new Dictionary<int, int>();
         // private static string[] _shopItemType = new string[] { "推荐", "发型", "连衣裙", "内搭", "上衣", "下装", "外套", "袜子", "鞋子", "饰品" };
         private static string[] _shopItemType = new string[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" };