private void UpdateTimer() { if ((double)this.PlayerPosition.VDist(this._dropZone) < 145.0) { if (!this._notify) { BigMessageThread.get_MessageInstance().ShowMissionPassedMessage("~r~Entering Hostile Zone", 5000); this._notify = true; } if (!MenuConrtoller.BarPool.ToList().Contains((TimerBarBase)this._timerBar)) { return; } MenuConrtoller.BarPool.Remove((TimerBarBase)this._timerBar); } else { if (!MenuConrtoller.BarPool.ToList().Contains((TimerBarBase)this._timerBar)) { MenuConrtoller.BarPool.Add((TimerBarBase)this._timerBar); } this._timerBar.set_Percentage(this._currentTime / (float)this._timeOut); this._currentTime -= Game.get_LastFrameTime(); if ((double)this._currentTime > 0.0) { return; } this.Complete(); UI.Notify("~r~Failed~s~ to retrieve crate."); } }