private void OnEnable() { if (applyReverb) { mSource.AddToSimulator(mSimulator); SteamAudioManager.AddListener(this); SteamAudioManager.GetAudioEngineState().SetReverbSource(mSource); } }
private void OnDisable() { if (applyReverb) { SteamAudioManager.RemoveListener(this); mSource.RemoveFromSimulator(mSimulator); SteamAudioManager.GetAudioEngineState().SetReverbSource(mSource); } }
private void Awake() { mSimulator = SteamAudioManager.Simulator; var settings = SteamAudioManager.GetSimulationSettings(false); mSource = new Source(SteamAudioManager.Simulator, settings); SteamAudioManager.GetAudioEngineState().SetReverbSource(mSource); }
private void Start() { SteamAudioManager.GetAudioEngineState().SetReverbSource(mSource); }