浏览代码

卡牌合成

zhangyuqian 1 年之前
父节点
当前提交
60ad968df4
共有 1 个文件被更改,包括 26 次插入0 次删除
  1. 26 0
      GameClient/Assets/Game/HotUpdate/ServerProxy/ClothingSyntheticSProxy.cs

+ 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;
+
+        }
     }
 }