| | |
| | | using System;
|
| | | using UnityEngine;
|
| | | using UnityEngine.UI;
|
| | |
|
| | |
| | | int guessState = model.GetGuessState();
|
| | | if (guessState == 0)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("FairySiege21");
|
| | | if (!model.TryGetGuessAwardTime(out DateTime startGuessAwardTime, out DateTime endGuessAwardTime))
|
| | | return;
|
| | | SysNotifyMgr.Instance.ShowTip("FairySiege22", GetGuessTimeStr());
|
| | | return;
|
| | | }
|
| | | WindowCenter.Instance.Open<FairySiegeGuessWin>();
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public string GetGuessTimeStr()
|
| | | {
|
| | | if (!model.TryGetGuessTime(out DateTime startGuessTime, out DateTime endGuessTime))
|
| | | return string.Empty;
|
| | | OperationDate startDate = model.operationCrossAct.startDate;
|
| | | var textBuilder = OperationTimeHepler.textBuilder;
|
| | | textBuilder.Length = 0;
|
| | | OperationDate nowDate = new OperationDate();
|
| | | nowDate.year = startGuessTime.Year;
|
| | | nowDate.month = startGuessTime.Month;
|
| | | nowDate.day = startGuessTime.Day;
|
| | | textBuilder.Append(nowDate.ToDisplay());
|
| | | textBuilder.Append(string.Format(" {0}:{1}", startGuessTime.Hour.ToString("D2"), startGuessTime.Minute.ToString("D2")));
|
| | | return textBuilder.ToString();
|
| | | }
|
| | |
|
| | | public void Display()
|
| | | {
|
| | | // 0 公示期 1 备战期 2 开战期 3 休战期 4 领奖期
|