Browse Source

卡牌合成

zhangyuqian 1 năm trước cách đây
mục cha
commit
60ad968df4

+ 26 - 0
GameClient/Assets/Game/HotUpdate/ServerProxy/ClothingSyntheticSProxy.cs

@@ -22,5 +22,31 @@ namespace GFGGame
             return true;
 
         }
+
+        public static async ETTask<bool> CardSynthetic(int itemId,bool isFirst)
+        {
+            var response = (M2C_ClothingSynthetic)await MessageHelper.SendToServer(new C2M_ClothingSynthetic() { ItemId = itemId });
+            if (response != null)
+            {
+                if (response.Error == ErrorCode.ERR_Success)
+                {
+                    if(isFirst)
+                    {
+                        ViewManager.Show<LuckyBoxNewCardView>(itemId);
+                    }
+                    else
+                    {
+                        int[][] array = new int[][]
+                                        {
+                                            new int[] { 3000028, 1 }
+                                        };
+                        BonusController.TryShowBonusList(array);
+                    }
+                    return true;
+                }
+            }
+            return true;
+
+        }
     }
 }