public override void OnInitialize() { this.Zoned = Components.Get<Zoned>(); this.On<EnterZonePayload>(this.OnEnterZone); this.On<LeaveZonePayload>(this.OnLeaveZone); }
public override void OnInitialize() { Attributes = this.GameObject.Components.Get<AttributeContainer>(); Zoned = this.GameObject.Components.Get<Zoned>(); On<AttackPayload>(OnAttackPayload); On<HitPayload>(OnHitPayload); On<DeathPayload>(OnDeathPayload); On<KillPayload>(OnKillPayload); _random = new Random(); }