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; }
public void DefineFirstStateOnSelfTank(NodeAddedEvent evt, SelfActiveTankNode selfActiveTank, [Context, JoinByTank] VulcanWeaponNode vulcan) { vulcan.Entity.AddComponentIfAbsent <VulcanIdleComponent>(); }