public Controller(){ globals = new ControllerGlobals (); audio = new ControllerAudio (); all = new ArrayList (); all.Add (globals); all.Add (audio); }
//Called when the UI updates to ensure that the volume slider represents the current game audio volume. public void UpdateVolume() { ControllerAudio.SetVolume(slider); }
//Initializes the Audio Controller and connects it with the music audio source. public void InitializeAudio() { ControllerAudio.SetMusicSource(audioSource); }