private void onMonsterRemoved(GameEvent e) { MonsterRole monsterRole = (MonsterRole)e.orgdata; bool flag = this.targetId == 0 || this.targetId == monsterRole.monsterid; if (flag) { this.curNum++; bool flag2 = this.curNum >= this.maxNum; if (flag2) { this.doit(); GameEventTrigger.remove(this); } } }
private void onRoleBorn(GameEvent e) { this.doit(); GameEventTrigger.remove(this); }
private void ontimeout() { base.CancelInvoke("ontimeout"); this.doit(); GameEventTrigger.remove(this); }