| | |
| | | {
|
| | | m_Text_ActivityTimeTo.text = Language.Get("LimitGift2");
|
| | | }
|
| | | if (time > 86400)
|
| | | if (time > 0)
|
| | | {
|
| | | m_Text_ActivityTimeTo.gameObject.SetActive(false);
|
| | | string str = String.Format(Language.Get("LimitGift1"), TimeUtility.SecondsToDHMSCHS(time));
|
| | | m_Text_ActivityTimeTo.text = str;
|
| | | // m_Text_ActivityTimeTo.color = UIHelper.GetUIColor(TextColType.Green);
|
| | | }
|
| | | else
|
| | | {
|
| | | if (!m_Text_ActivityTimeTo.gameObject.activeSelf)
|
| | | {
|
| | | m_Text_ActivityTimeTo.gameObject.SetActive(true);
|
| | | }
|
| | | if (time < 3600)
|
| | | {
|
| | | string str = String.Format(Language.Get("LimitGift1"), TimeUtility.SecondsToHMS(time));
|
| | | m_Text_ActivityTimeTo.text = str;
|
| | | m_Text_ActivityTimeTo.color = UIHelper.GetUIColor(TextColType.Green);
|
| | |
|
| | | }
|
| | | else
|
| | | {
|
| | | string str = String.Format(Language.Get("LimitGift1"), TimeUtility.SecondsToHMS(time));
|
| | | m_Text_ActivityTimeTo.text = str;
|
| | | m_Text_ActivityTimeTo.color = UIHelper.GetUIColor(TextColType.Green);
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | #endregion
|