ClothingSyntheticSProxy.cs 677 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using ET;
  6. namespace GFGGame
  7. {
  8. public class ClothingSyntheticSProxy
  9. {
  10. public static async ETTask<bool> ClothtingSynthetic(int itemId)
  11. {
  12. var response = (M2C_ClothingSynthetic)await MessageHelper.SendToServer(new C2M_ClothingSynthetic() { ItemId = itemId });
  13. if (response != null)
  14. {
  15. if (response.Error == ErrorCode.ERR_Success)
  16. {
  17. GetSuitItemController.TryShow(itemId);
  18. return true;
  19. }
  20. }
  21. return true;
  22. }
  23. }
  24. }