I am trying to figure out how I can change the game volume using my slider… but as the previous tip says, there is an audio source added… I just created an empty object and put a audio source inside…
1: Where should I place my audio source?
2: If I put another audio source (with my load sound) in my scene, the load sound get played twice and explodes my ears and my headset.
3: How can I set the audio source on my LevelManager, I can’t have 2 objects at the sane time selected so I can drag my Audio Source. Also I can’t select it from my assets. (> NullReferenceException: Object reference not set to an instance of an object
LevelManager.ChangeVolume (Single volume) (at Assets/Scripts/LevelManager.cs:45)
SliderController.Update () (at Assets/Scripts/SliderController.cs:22)
)
Please help me!