public void Clear() { Singleton <CTimerManager> .GetInstance().RemoveTimerSafely(ref this.m_cdTimer); for (int i = 0; i < this.node_ary.get_Count(); i++) { DragonIcon.DragonNode dragonNode = this.node_ary.get_Item(i); if (dragonNode != null) { dragonNode.Clear(); } } this.node_ary.Clear(); this.node_ary = null; Singleton <EventRouter> .GetInstance().RemoveEventHandler <ActorRoot>("Dragon_born", new Action <ActorRoot>(this.onDragon_Born)); Singleton <EventRouter> .GetInstance().RemoveEventHandler <ActorRoot>("Dragon_dead", new Action <ActorRoot>(this.onDragon_Dead)); this.m_b5v5 = false; }
public void Clear() { Singleton <CTimerManager> .GetInstance().RemoveTimerSafely(ref this.m_cdTimer); for (int i = 0; i < this.node_ary.Count; i++) { DragonIcon.DragonNode dragonNode = this.node_ary[i]; if (dragonNode != null) { dragonNode.Clear(); } } this.node_ary.Clear(); this.node_ary = null; Singleton <EventRouter> .GetInstance().RemoveEventHandler <ActorRoot>("Dragon_born", new Action <ActorRoot>(this.onDragon_Born)); Singleton <EventRouter> .GetInstance().RemoveEventHandler <ActorRoot>("Dragon_dead", new Action <ActorRoot>(this.onDragon_Dead)); Singleton <GameEventSys> .instance.RmvEventHandler <NextSpawnGroupsParam>(GameEventDef.Event_NextSpawnGroups, new RefAction <NextSpawnGroupsParam>(this.OnNextSpawnGroups)); this.m_b5v5 = false; }