Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     if (soundIcons == null)
     {
         soundIcons = GetComponentInChildren <SoundIcons>();
     }
     if (hotspot == null)
     {
         return;
     }
     markerTrigger.triggerDelegate = this;
 }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
        // -----------------------------------

        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;
        }
Exemplo n.º 4
0
 void Awake()
 {
     audioSrc   = GetComponent <AudioSource>();
     soundIcons = GetComponentInChildren <SoundIcons>();
     markerTrigger.triggerDelegate = this;
 }