private void Clear() { ListView <TriggerActionTextBubble.ActorRootInfo> .Enumerator enumerator = this.m_actorTimerMap.GetEnumerator(); while (enumerator.MoveNext()) { TriggerActionTextBubble.ActorRootInfo current = enumerator.get_Current(); PoolObjHandle <ActorRoot> actor = current.Actor; TriggerActionTextBubble.ActorRootInfo current2 = enumerator.get_Current(); int id = current2.Id; this.SetHudText(string.Empty, actor); Singleton <CTimerManager> .GetInstance().RemoveTimer(id); } this.m_actorTimerMap.Clear(); }
private void OnTimeUp(int timersequence) { PoolObjHandle <ActorRoot> poolObjHandle = default(PoolObjHandle <ActorRoot>); int num = -1; for (int i = 0; i < this.m_actorTimerMap.get_Count(); i++) { TriggerActionTextBubble.ActorRootInfo actorRootInfo = this.m_actorTimerMap.get_Item(i); if (actorRootInfo.Id == timersequence) { num = i; poolObjHandle = actorRootInfo.Actor; break; } } if (poolObjHandle && num != -1) { this.SetHudText(string.Empty, poolObjHandle); this.m_actorTimerMap.RemoveAt(num); } Singleton <CTimerManager> .GetInstance().RemoveTimer(timersequence); }