A component that holds various attributes for a game object that has this component attached
상속: Component, IAttributeProvider
예제 #1
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();
        }
예제 #2
0
        public override void OnInitialize()
        {
            this.Attributes = this.GameObject.Components.Get<AttributeContainer>();

            On<UsePowerPayload>(OnUsePowerPayload);
        }