I seem to have a problem with Unity in which I have set up a trigger to turn on or of a long audio clip which is the game music. The trigger itself works well and upon scene load, the audio starts playing. Upon clicking the toggle, it stops the audio, but when I click again, the audio does not start. I use the code music.Play()
But the sound does not restart. So I changed code to
music.volume = 1
music.volume = 0
Still I don’t hear the music when I try to switch the volume back to full. Is there a bug with Unity. I am using Unity 4.6.3.