예제 #1
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);
        }
예제 #2
0
 // use GetComponentInParents<...> in your scenario
 public void Configure(HUDAudioController hudAC, HUDController hudC)
 {
     hudAudioController = hudAC;
     hudTextController  = hudC;
 }