| | |
| | | private void RefreshCoinPrayerTime()
|
| | | {
|
| | | TimeSpan t = TimeUtility.GetTime(model.lastCoinPrayerTime + (uint)model.prayerCoinFreeTime) - TimeUtility.ServerNow;
|
| | | surplusTimeText.text = Language.Get("PrayerWin_10", t.Hours, t.Minutes, Mathf.Max(0, t.Seconds));
|
| | | if (t.Days > 0)
|
| | | surplusTimeText.text = Language.Get("ItemOverdue102", t.Days) + Language.Get("PrayerWin_10", t.Hours, t.Minutes, Mathf.Max(0, t.Seconds));
|
| | | else
|
| | | surplusTimeText.text = Language.Get("PrayerWin_10", t.Hours, t.Minutes, Mathf.Max(0, t.Seconds));
|
| | | if (t.Hours <= 0 && t.Minutes <= 0 && t.Seconds <= 0)
|
| | | {
|
| | | OnCoinPrayerEvent();
|