Beispiel #1
0
 public void UpdateEffect(TimeUpdateEvent e, TankWithGearsNode tank, [JoinByTank] WeaponNode weapon, [JoinByTank] EffectReadyNode effect)
 {
     tank.acceleratedGearsInstance.Instance.SetActive((weapon.weaponRotationControl.Speed > weapon.weaponRotation.BaseSpeed) && (weapon.weaponRotationControl.EffectiveControl != 0f));
 }
Beispiel #2
0
 public void StopEffect(NodeRemoveEvent e, EffectReadyNode effect, [JoinByTank] TankWithGearsNode tank)
 {
     tank.acceleratedGearsInstance.Instance.SetActive(false);
 }