public void PlayDeactivationSound(RemoveEffectEvent e, MineNode mine, [JoinByTank] SingleNode <RemoteTankComponent> tank, [JoinAll] SingleNode <SoundListenerBattleStateComponent> soundListener) { mine.mineSounds.DeactivationSound.Play(); }
public void PlayEffectRemovingSound(RemoveEffectEvent e, SingleNode <EffectRemovingSoundComponent> effect, [JoinAll] SingleNode <SoundListenerBattleStateComponent> soundListener) { effect.component.Sound.Play(); }
public void StopRunningSound(RemoveEffectEvent e, SpiderSoundsNode mine) { mine.spiderMineSounds.RunSoundController.FadeOut(); }
public void Disable(RemoveEffectEvent e, EffectRemovingNode effect) { InstantiateEffectEffect(effect.effectInstance, effect.removeEffectGraphics.EffectPrefab, effect.removeEffectGraphics.EffectLifeTime, effect.removeEffectGraphics.Origin); }
public void PrepareCleaningForModuleEffectsParts(RemoveEffectEvent evt, SingleNode <EffectComponent> effect, [JoinByUnit] SingleNode <WeaponSoundRootComponent> weapon, [JoinAll] SoundListenerNode listener) { Transform tankPartTransform = weapon.component.transform; this.PrepareCleaningForTankPart(tankPartTransform, listener.soundListenerCleaner.TankPartCleanTimeSec); }
public void RemoveEffect(RemoveEffectEvent e, ReadyDroneEffectNode drone) { drone.Entity.RemoveComponent <DroneFlySoundEffectReadyComponent>(); drone.droneFlySoundEffect.Sound.FadeOut(); }