Ejemplo n.º 1
0
 private void Awake()
 {
     effectsModifier    = Camera.main.GetComponent <EffectsModifier>();
     humanSoundBehavior = GetComponent <HumanSoundBehavior>();
     audioSource        = GetComponent <AudioSource>();
     waveSoundManager   = FindObjectOfType <WaveSoundManager>();
     waveSoundManager.AssingClip(audioSource, clips[Random.Range(0, clips.Length)]);
     startIntensity = 1.0f / newIntensity;
 }
Ejemplo n.º 2
0
 private void Awake()
 {
     audioSource      = GetComponent <AudioSource>();
     waveSoundManager = FindObjectOfType <WaveSoundManager>();
     waveSoundManager.AssingClip(audioSource, clip[index]);
 }