StartFightRoomComponentSystem.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using UnityEngine;
  2. namespace ET
  3. {
  4. [FriendOfAttribute(typeof(ET.StartFightRoomComponment))]
  5. [FriendOfAttribute(typeof(ET.StartFightRoomInfo))]
  6. public static class StartFightRoomComponentSystem
  7. {
  8. public static void ClearStartFightRoomInfo(this StartFightRoomComponment self)
  9. {
  10. self.startFightRoomInfo?.Dispose();
  11. }
  12. public static async ETTask SetStartFightRoomInfoFromPush(this StartFightRoomComponment self, RoomInfo roomInfo)
  13. {
  14. self.startFightRoomInfo.roomInfo = roomInfo;
  15. await ETTask.CompletedTask;
  16. }
  17. public static void SetStartFightRoomInfoFromCreate(this StartFightRoomComponment self, RoomInfo roomInfo)
  18. {
  19. self.startFightRoomInfo.roomInfo = roomInfo;
  20. }
  21. public static StartFightRoomInfo GetStartFightRoomInfo(this StartFightRoomComponment self)
  22. {
  23. return self.startFightRoomInfo;
  24. }
  25. public static async ETTask SetReadyTimeCount(this StartFightRoomComponment self,long startTimeCount)
  26. {
  27. self.startFightRoomInfo.readyStartTimeCount = startTimeCount;
  28. }
  29. }
  30. }