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);
        }