Exemplo n.º 1
0
        public override void OnInitialize()
        {
            this.Zoned = Components.Get<Zoned>();

            this.On<EnterZonePayload>(this.OnEnterZone);
            this.On<LeaveZonePayload>(this.OnLeaveZone);
        }
Exemplo n.º 2
0
        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();
        }