public ShieldAnimation(Entity entity, string texture) { _Entity = entity; _Effect = CorvusGame.Instance.GlobalContent.Load<Texture2D>(texture); MC = _Entity.GetComponent<MovementComponent>(); }
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(); MovementComponent = this.GetDependency<MovementComponent>(); PathComponent = this.GetDependency<PathComponent>(); MovementComponent = this.GetDependency<MovementComponent>(); CombatComponent = this.GetDependency<CombatComponent>(); PhysicsSystem = Parent.Scene.GetSystem<PhysicsSystem>(); PhysicsComponent = this.GetDependency<PhysicsComponent>(); AttributesComponent = this.GetDependency<AttributesComponent>(); SpriteComponent = this.GetDependency<SpriteComponent>(); HealthBarComponent = this.GetDependency<HealthBarComponent>(); DamageComponent = this.GetDependency<DamageComponent>(); }
protected override void OnInitialize() { base.OnInitialize(); AC = this.GetDependency<AttributesComponent>(); MC = this.GetDependency<MovementComponent>(); CC = this.GetDependency<CombatComponent>(); PC = this.GetDependency<PhysicsComponent>(); SC = this.GetDependency<SpriteComponent>(); EC = this.GetDependency<EquipmentComponent>(); ScoreComponent = this.GetDependency<ScoreComponent>(); _IsAttacking = false; if (!AC.IsDiedRegistered) AC.Died += AC_Died; }
protected override void OnInitialize() { base.OnInitialize(); AttributesComponent = this.GetDependency<AttributesComponent>(); CombatComponent = Parent.GetComponent<CombatComponent>(); MovementComponent = this.GetDependency<MovementComponent>(); FloatingTextComponent = this.GetDependency<FloatingTextComponent>(); }
protected override void OnInitialize() { base.OnInitialize(); MovementComponent = this.GetDependency<MovementComponent>(); PhysicsSystem = Parent.Scene.GetSystem<PhysicsSystem>(); PhysicsComponent = Parent.GetComponent<PhysicsComponent>(); }