public void BroadcastRefreshEvent() { bool flag = false; if (BountyManager.Instance.freeCountDown >= 0) { if (BountyManager.Instance.Countdown <= TimeManager.Instance.PreciseServerTime) { flag = true; } } if (this.rewardBoxId > 0 && !BountyManager.Instance.HasGotRewardDaily) { ShengLiBaoXiang shengLiBaoXiang = DataReader <ShengLiBaoXiang> .Get(this.rewardBoxId); if (shengLiBaoXiang != null && this.Info.hasStar >= shengLiBaoXiang.star) { flag = true; } } flag = (this.HasGotRewardUrgent[0] || this.HasGotRewardUrgent[1] || this.HasGotRewardUrgent[2]); using (Dictionary <ulong, DateTime> .ValueCollection.Enumerator enumerator = BountyManager.Instance.ProductionTimeMap.get_Values().GetEnumerator()) { while (enumerator.MoveNext()) { DateTime current = enumerator.get_Current(); if (current <= TimeManager.Instance.PreciseServerTime) { flag = true; } } } bool flag2 = this.HasOpenedUrgentTask(); if (!flag && flag2) { flag = flag2; } EventDispatcher.Broadcast <string, bool>(EventNames.OnTipsStateChange, TipsEvents.ButtonTipsTownUiBountyUI, flag); EventDispatcher.Broadcast(EventNames.BountyRefreshUI); }