コード例 #1
0
 protected override void OnInitialize()
 {
     base.OnInitialize();
     MovementComponent = this.GetDependency <MovementComponent>();
     PhysicsSystem     = Parent.Scene.GetSystem <PhysicsSystem>();
     PhysicsComponent  = Parent.GetComponent <PhysicsComponent>();
 }
コード例 #2
0
ファイル: CombatComponent.cs プロジェクト: Octanum/Corvus
 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");
 }
コード例 #3
0
ファイル: AIComponent.cs プロジェクト: Octanum/Corvus
 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>();
 }
コード例 #4
0
ファイル: PathComponent.cs プロジェクト: Octanum/Corvus
 protected override void OnInitialize()
 {
     base.OnInitialize();
     MovementComponent = this.GetDependency<MovementComponent>();
     PhysicsSystem = Parent.Scene.GetSystem<PhysicsSystem>();
     PhysicsComponent = Parent.GetComponent<PhysicsComponent>();
 }