public TrapController() { Service.Set <TrapController>(this); this.ctm = Service.Get <CombatTriggerManager>(); Service.Get <EventManager>().RegisterObserver(this, EventId.EntityKilled, EventPriority.Default); Service.Get <EventManager>().RegisterObserver(this, EventId.BattleEndProcessing, EventPriority.Default); }
public TrapController() { Service.TrapController = this; this.ctm = Service.CombatTriggerManager; Service.EventManager.RegisterObserver(this, EventId.EntityKilled, EventPriority.Default); Service.EventManager.RegisterObserver(this, EventId.BattleEndProcessing, EventPriority.Default); }