| | |
| | | bool requireRemind = false;
|
| | | DateTime startTime = DateTime.Now;
|
| | |
|
| | | float lastRequestTime = 0;
|
| | |
|
| | | private void Awake()
|
| | | {
|
| | | m_Goto.AddListener(Goto);
|
| | |
| | | {
|
| | | DisplayTimer();
|
| | | }
|
| | | else
|
| | | {
|
| | | if (Time.time - lastRequestTime < 5)
|
| | | {
|
| | | return;
|
| | | }
|
| | | lastRequestTime = Time.time;
|
| | | var fairyLeagueTime = model.currentWeekTime;
|
| | | if (fairyLeagueTime == null || fairyLeagueTime.fairyLeagueStage != FairyLeagueStage.Grouping)
|
| | | {
|
| | | return;
|
| | | }
|
| | | var ring = fairyLeagueTime.rings[fairyLeagueTime.currentRing];
|
| | | if (ring == null)
|
| | | {
|
| | | return;
|
| | | }
|
| | | var session = ring.sessions[ring.sessions.Count - 1];
|
| | | if (session == null)
|
| | | {
|
| | | return;
|
| | | }
|
| | | var stage = session.stages.Find((x) =>
|
| | | {
|
| | | return x.stage == FairyLeagueStage.Grouping;
|
| | | });
|
| | | if (stage != null)
|
| | | {
|
| | | if (TimeUtility.Hour == stage.startHour
|
| | | && TimeUtility.Minute == stage.startMinute)
|
| | | {
|
| | | CA001_tagViewUniversalGameRec _pak = new CA001_tagViewUniversalGameRec();
|
| | | _pak.ViewType = (byte)FairyLeagueModel.FAIRY_LEAGUE_BATTLE;
|
| | | GameNetSystem.Instance.SendInfo(_pak);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void OnRefreshFairyInfo()
|