// Start is called before the first frame update void Start() { if (soundIcons == null) { soundIcons = GetComponentInChildren <SoundIcons>(); } if (hotspot == null) { return; } markerTrigger.triggerDelegate = this; }
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; }
void Awake() { audioSrc = GetComponent <AudioSource>(); soundIcons = GetComponentInChildren <SoundIcons>(); markerTrigger.triggerDelegate = this; }