예제 #1
0
파일: Mob.cs 프로젝트: GrindFest/GrindFest
        public override void OnInitialize()
        {
            this.Zoned = Components.Get<Zoned>();

            this.On<EnterZonePayload>(this.OnEnterZone);
            this.On<LeaveZonePayload>(this.OnLeaveZone);
        }
예제 #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();
        }