12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using ET;
- namespace GFGGame
- {
- public class ClothingSyntheticSProxy
- {
- public static async ETTask<bool> ClothtingSynthetic(int itemId)
- {
- var response = (M2C_ClothingSynthetic)await MessageHelper.SendToServer(new C2M_ClothingSynthetic() { ItemId = itemId });
- if (response != null)
- {
- if (response.Error == ErrorCode.ERR_Success)
- {
- GetSuitItemController.TryShow(itemId);
- return true;
- }
- }
- 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;
- }
- }
- }
|