protected override void OnInitialize() { base.OnInitialize(); CPComponent = this.GetDependency <CombatPropertiesComponent>(); SEAComponent = Parent.GetComponent <StatusEffectPropertiesComponent>(); AttributesComponent = this.GetDependency <AttributesComponent>(); _Timer = TimeSpan.Zero; }
protected override void OnInitialize() { base.OnInitialize(); EquipmentComponent = Parent.GetComponent<EquipmentComponent>(); AttributesComponent = this.GetDependency<AttributesComponent>(); MovementComponent = this.GetDependency<MovementComponent>(); SpriteComponent = this.GetDependency<SpriteComponent>(); PhysicsSystem = Parent.Scene.GetSystem<PhysicsSystem>(); PhysicsComponent = Parent.GetComponent<PhysicsComponent>(); CombatPropertiesComponent = this.GetDependency<CombatPropertiesComponent>(); _ShieldAnimation = new ShieldAnimation(this.Parent, "Sprites/Misc/Shield_Yellow2"); }
protected override void OnInitialize() { base.OnInitialize(); AttributesComponent = this.GetDependency<AttributesComponent>(); SEAComponent = Parent.GetComponent<StatusEffectPropertiesComponent>(); CPComponent = this.GetDependency<CombatPropertiesComponent>(); PC = this.GetDependency<PhysicsComponent>(); }