Пример #1
0
 public void Init(NodeAddedEvent e, VulcanWeaponNode vulcan, [JoinByTank, Context] HUDNodes.SelfTankNode tank, SingleNode <MainHUDComponent> hud)
 {
     hud.component.EnergyBarEnabled       = true;
     hud.component.EnergyAmountPerSegment = 1f;
     hud.component.MaxEnergyValue         = 2f;
     hud.component.CurrentEnergyValue     = 0f;
 }
Пример #2
0
 public void DefineFirstStateOnSelfTank(NodeAddedEvent evt, SelfActiveTankNode selfActiveTank, [Context, JoinByTank] VulcanWeaponNode vulcan)
 {
     vulcan.Entity.AddComponentIfAbsent <VulcanIdleComponent>();
 }