protected override void OnDead() { MonsterDropItemCreator creator = new MonsterDropItemCreator(); if (base.myLastAtker != 0) { creator.MakeDropItemIfNeed(this, this.myLastAtker.handle.ActorControl); } else { creator.MakeDropItemIfNeed(this, null); } if (this.isCalledMonster) { this.RemoveCheckDistanceTimer(); } base.OnDead(); if (true) { Singleton <GameObjMgr> .instance.RecycleActor(base.actorPtr, this.cfgInfo.iRecyleTime); } if (this.isCalledMonster) { this.HostActor.handle.ActorControl.eventActorDead -= new ActorEventHandler(this.OnActorDead); } }
protected override void OnDead() { MonsterDropItemCreator monsterDropItemCreator = default(MonsterDropItemCreator); if (this.myLastAtker) { monsterDropItemCreator.MakeDropItemIfNeed(this, this.myLastAtker.get_handle().ActorControl); } else { monsterDropItemCreator.MakeDropItemIfNeed(this, null); } if (this.isCalledMonster) { this.RemoveCheckDistanceTimer(); } base.OnDead(); bool flag = true; if (flag) { Singleton <GameObjMgr> .get_instance().RecycleActor(this.actorPtr, this.cfgInfo.iRecyleTime); } if (this.isCalledMonster) { this.HostActor.get_handle().ActorControl.eventActorDead -= new ActorDeadEventHandler(this.OnActorDead); } if (this.actor.HorizonMarker != null) { this.actor.HorizonMarker.SetTranslucentMark(HorizonConfig.HideMark.Skill, false, false); this.actor.HorizonMarker.SetTranslucentMark(HorizonConfig.HideMark.Jungle, false, false); } }