void Update() { if (timer != null && timer.Update(Time.deltaTime) > 0) { CheckBtnTime(); } }
void Update() { if (timer != null && timer.Update(Time.deltaTime) > 0) { string str = Comm.DateDiffHour(DateTime.Now, data.refresh_time); time.text = str; } }
// Use this for initialization //void Start () { //} // Update is called once per frame void Update() { if (refreshTime != null && timer != null && timer.Update(Time.deltaTime) > 0) { string str = Comm.DateDiffHour(DateTime.Now, refreshTime); this.time.text = str; } }
void Update() { if (stockNum != 99) { if (data != null && timer != null && timer.Update(Time.deltaTime) > 0) { string str = Comm.DateDiffHour(DateTime.Now, data.refresh_time); this.stockTime.text = str; } } }
void FixedUpdate() { if (expTimer != null && expTimer.Update(Time.deltaTime) > 0 && curLeveldata != null) { UserManager.Instance.coin += curLeveldata.gain_gold; UserManager.Instance.exp += curLeveldata.gain_exp; if (ChangeInfoEvent != null) { ChangeInfoEvent(); } } if (hangingTimer != null && hangingTimer.Update(Time.deltaTime) > 0) { NetworkManager.Instance.CheckPointHanging(); } }
public void Update() { if (levelTimer != null && levelTimer.Update(Time.deltaTime) > 0) { if (levelpop.prograss.value < 1) { levelpop.time.text = Comm.DateDiffHour(DateTime.Now, curView.data.time); levelpop.prograss.value += curView.data.progress_unit; Vector3 vec = levelpop.role.transform.localPosition; vec.x = levelpop.LeftPos.transform.localPosition.x + (moveMax * levelpop.prograss.value); levelpop.role.transform.localPosition = vec; levelpop.battleBtn.isEnabled = false; } else { BattleEnter(); } } }
void FixedUpdate() { if (tiliTimer != null && tiliTimer.Update(Time.deltaTime) > 0) { //todo 时间太长 容易有误差 if (present_phy_power_num < data.phy_pwoer) { present_phy_power_num++; } NetworkManager.Instance.GetStrength(); } if (timer != null && timer.Update(Time.deltaTime) > 0) { string strt = Comm.DateDiffHour(DateTime.Now, t); string strtt = Comm.DateDiffHour(DateTime.Now, tt); if (!strtt.Equals("")) { pop.timeTxt.text = strt; } //if(!strtt.Equals("")) pop.totalTimeTxt.text = strtt; } if (runEvent != null && runEvent.runTime != null && runEvent.runTime.Update(Time.deltaTime) > 0) { string str = Comm.DateDiffHour(DateTime.Now, runEvent.time); if (str.Equals("")) { //历练结束 runEvent.view.text = ""; LiLianSaveSward(runEvent); } else { if (runEvent.view != null) { runEvent.view.text = str; } } } if (runList != null && runList.Count > 0) { for (int i = 0; i < runList.Count; i++) { if (runList[i].state != 0 && runList[i].runTime != null && runList[i].runTime.Update(Time.deltaTime) > 0) { string str = Comm.DateDiffHour(DateTime.Now, runList[i].time); if (str.Equals("")) { //历练结束 runList[i].view.text = ""; LiLianSaveSward(runList[i]); } else { if (runList[i].view != null) { runList[i].view.text = str; } } } } } }