MatchingCompetitionSproxy.cs 838 B

12345678910111213141516171819202122232425
  1. using ET;
  2. namespace GFGGame
  3. {
  4. public class MatchingCompetitionSproxy
  5. {
  6. //获取搭配评选赛搭配数据,道具数据,人物位置数据
  7. public static async ETTask<bool> ReqMatchingCompetitionDressData(int roleID)
  8. {
  9. //C2S_GetDay7Reward
  10. var response = await MessageHelper.SendToServer(new C2S_GetDay7Reward { Id = roleID });
  11. if (!(response is { Error: ErrorCode.ERR_Success })) return false;
  12. DressUpData data = null;
  13. if (data == null)
  14. {
  15. MatchingCompetitionDataManager.Instance.MathingDressDate = DressUpData.CreateDefault();
  16. }
  17. else
  18. {
  19. MatchingCompetitionDataManager.Instance.MathingDressDate = data;
  20. }
  21. return true;
  22. }
  23. }
  24. }