|
@@ -259,14 +259,12 @@ namespace GFGGame
|
|
long endTime = LuckyBoxDataManager.Instance.endTime;
|
|
long endTime = LuckyBoxDataManager.Instance.endTime;
|
|
long curTime = TimeHelper.ServerNow();
|
|
long curTime = TimeHelper.ServerNow();
|
|
TimeUtil.FormattingTime(curTime, endTime, out int num, out string str);
|
|
TimeUtil.FormattingTime(curTime, endTime, out int num, out string str);
|
|
- ET.Log.Debug("luckybox _ui:" + _ui);
|
|
|
|
- ET.Log.Debug("luckybox _ui.m_listBg:" + _ui.m_listBg);
|
|
|
|
|
|
+
|
|
GObject item = _ui.m_listBg.GetChildAt(0);
|
|
GObject item = _ui.m_listBg.GetChildAt(0);
|
|
if (item == null) return;
|
|
if (item == null) return;
|
|
GObject textField = item.asCom.GetChild("txtTime");
|
|
GObject textField = item.asCom.GetChild("txtTime");
|
|
if (textField == null) return;
|
|
if (textField == null) return;
|
|
textField.asTextField.text = string.Format("剩余{0}{1}", num, str);
|
|
textField.asTextField.text = string.Format("剩余{0}{1}", num, str);
|
|
- // _ui.m_listBg.GetChildAt(0).asCom.GetChild("txtTimeStr").asTextField.text = string.Format("{0}", str);
|
|
|
|
}
|
|
}
|
|
private void updateBoxEffect()
|
|
private void updateBoxEffect()
|
|
{
|
|
{
|