public void SetPhaserLevel(float newLevel) { // Debug.Log ("New Phaser Level: " + newLevel); // filterLowPass.lowpassResonanceQ = 1f + (newLevel * 9f); // filterHighPass.highpassResonanceQ = 1f + (newLevel * 9f); filterPhaser.setMaxSpeedWithPercentage(newLevel); filterPhaser.setEnabled(newLevel > 0.1f); hotspot.SetPhaserLevel(newLevel); }
void Awake() { _audioSrc = GetComponent <AudioSource>(); soundIcons = GetComponentInChildren <SoundIcons>(); filterLowPass = GetComponent <AudioLowPassFilter>(); filterHighPass = GetComponent <AudioHighPassFilter>(); filterDistortion = GetComponent <AudioDistortionFilter>(); filterPhaser = GetComponent <AudioPhaser>(); filterLowPass.enabled = false; filterHighPass.enabled = false; filterDistortion.enabled = false; filterPhaser.setEnabled(false); markerTrigger.triggerDelegate = this; }
// ----------------------------------- void Awake() { _audioSrc = GetComponent <AudioSource>(); soundIcons = GetComponentInChildren <SoundIcons>(); followCameraYPos = GetComponent <FollowMainCameraYPosition>(); resonance = GetComponent <ResonanceAudioSource>(); filterLowPass = GetComponent <AudioLowPassFilter>(); filterHighPass = GetComponent <AudioHighPassFilter>(); filterDistortion = GetComponent <AudioDistortionFilter>(); filterEcho = GetComponent <AudioEchoFilter>(); filterPhaser = GetComponent <AudioPhaser>(); filterLowPass.enabled = false; filterHighPass.enabled = false; filterDistortion.enabled = false; filterEcho.enabled = false; filterPhaser.setEnabled(false); followCameraYPos.enabled = false; markerTrigger.triggerDelegate = this; }