// Use this for initialization void Start() { cityAudioModel = new HUDAudioModel(); cityAudioModel.addClip("Urban-Ambient", 25f); cityAudioController = GetComponent <HUDAudioController> (); cityAudioController.primaryAudioSource = citySounds; cityAudioController.audioModel = cityAudioModel; cityAudioController.playAudio(0); }
// Use this for initialization void Start () { cityAudioModel = new HUDAudioModel (); cityAudioModel.addClip ("Urban-Ambient", 25f); cityAudioController = GetComponent<HUDAudioController> (); cityAudioController.primaryAudioSource = citySounds; cityAudioController.audioModel = cityAudioModel; cityAudioController.playAudio (0); }