public void UpdateSpeedStateUpOnSelfTank(ApplicationFocusEvent evt, VulcanWeaponSpeedUpControllerNode vulcanSpeedUp, [JoinByTank] SelfActiveTankNode tank) { Entity weapon = vulcanSpeedUp.Entity; if (!evt.IsFocused) { this.SwitchVulcanFromSpeedUpToSlowDown(weapon); } }
public void UpdateSpeedStateUpOnSelfTank(EarlyUpdateEvent evt, VulcanWeaponSpeedUpControllerNode vulcanSpeedUp, [JoinByTank] SelfActiveTankNode tank) { Entity weapon = vulcanSpeedUp.Entity; if (!InputManager.CheckAction(ShotActions.SHOT)) { this.SwitchVulcanFromSpeedUpToSlowDown(weapon); } else if (vulcanSpeedUp.vulcanWeaponState.State >= 1f) { this.SwitchVulcanFroomSpeedUpToShooting(weapon); } }
public void SwitchFromSpeedUpToIdleWhenSelfTankInactive(NodeRemoveEvent evt, SelfActiveTankNode selfActiveTank, [JoinByTank] VulcanWeaponSpeedUpControllerNode vulcanSpeedUp) { Entity entity = vulcanSpeedUp.Entity; entity.RemoveComponent <VulcanSpeedUpComponent>(); entity.AddComponent <VulcanIdleComponent>(); }