private void Play(ReadySilentAmbientSoundNode soundListener, bool playWithNitro) { Entity entity = soundListener.Entity; soundListener.hangarAmbientSoundController.HangarAmbientSoundController.Play(playWithNitro); entity.RemoveComponent <HangarAmbientSoundSilenceComponent>(); }
public void PlayAmbientSoundEffect(NodeAddedEvent evt, ReadySilentAmbientSoundNode soundListener, HomeScreenNode screen) { base.NewEvent(new BeforeLobbyAmbientSoundPlayEvent(true)).Attach(soundListener).ScheduleDelayed(soundListener.soundListener.DelayForLobbyState); }
public void FinalizeAmbientSoundEffect(MapAmbientSoundPlayEvent evt, ReadySilentAmbientSoundNode soundListener) { this.Stop(soundListener); soundListener.Entity.RemoveComponent <HangarAmbientSoundSilenceComponent>(); }