Ejemplo n.º 1
0
 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>();
 }
Ejemplo n.º 2
0
 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>();
 }