Пример #1
0
 void Start()
 {
     audio        = audioObject.GetComponent <AudioSource>();
     audioManager = FindObjectOfType <AmbientalAudioManager>();
     rainControllers[0].Play();
     rain = rainObject.GetComponent <ParticleSystem>();
 }
Пример #2
0
 private void Start()
 {
     audioManager = FindObjectOfType <AmbientalAudioManager>();
     audio        = AudioSource.GetComponent <AudioSource>();
 }