void ActivityLimitTimeReponse(BaseHttpRequest request, BaseResponse response) { ComLoading.Close(); if (response != null && response.status != BaseResponse.ERROR) { NewActivityResponse res = response as NewActivityResponse; if (res != null) { har = res; Core.Data.HolidayActivityManager.har = res; initInfo(res.data); } } if (response != null && response.status == BaseResponse.ERROR) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getNetworkErrorString(response.errorCode)); } }
public void ArrangeNewActivity() { if (m_NewActBtn != null) { // UILabel lblName = m_NewActBtn.GetComponentInChildren<UILabel> (); if (m_NameLabel != null) { NewActivityResponse tData = Core.Data.HolidayActivityManager.har; if (tData != null) { if (tData.data != null && tData.data.Length > 0) { m_NameLabel.text = Core.Data.stringManager.getString(25168); RED.SetActive(true, m_NewActBtn.gameObject); } else { RED.SetActive(false, m_NewActBtn.gameObject); } } else { RED.SetActive(false, m_NewActBtn.gameObject); } if (m_NewActBtn.gameObject.activeSelf) { if (sp_ActivityTip != null) { if (tData != null) { RED.SetActive(tData.IsGetReward(), sp_ActivityTip.gameObject); } } } BtnGrid.repositionNow = true; } } }
// void OnDestroy() { CancelInvoke("OneHour"); if (activityInfo != null) { activityInfo.Clear(); } instence = null; _grid = null; if (listAct.Count > 0) { for (int i = 0; i < listAct.Count; i++) { Destroy(listAct[i]); } listAct.Clear(); } har = null; activityInfo = null; listAct = null; }
//开始倒计时 public HolidayActivityData() { _har = null; }