Browse Source

修改代码可读性

LiuQilin 7 years ago
parent
commit
7b27172104
1 changed files with 10 additions and 10 deletions
  1. 10 10
      Assets/Script/Function/ThanksGift.cs

+ 10 - 10
Assets/Script/Function/ThanksGift.cs

@@ -17,16 +17,16 @@ public class Gift
         精灵 = 6,
     }
 
-    //private static Dictionary<char, GiftType> TypeDictionary = new Dictionary<char, GiftType>
-    //{
-    //    {'g', GiftType.金币},
-    //    {'d', GiftType.钻石},
-    //    {'p', GiftType.礼包},
-    //    {'f', GiftType.花朵},
-    //    {'c', GiftType.服装},
-    //    {'s', GiftType.开垦土地},
-    //    {'a', GiftType.精灵},
-    //};
+    private static Dictionary<GiftType, string> TypeLabelDictionary = new Dictionary<GiftType, string>
+    {
+        {GiftType.金币,"g"},
+        {GiftType.钻石,"d"},
+        {GiftType.礼包,"p"},
+        {GiftType.花朵,"f"},
+        {GiftType.服装,"c"},
+        {GiftType.开垦土地,"s"},
+        {GiftType.精灵,"a"},
+    };
 
     #region Config