Hi. This is reguarding my rhythm game again. I have made a pause menu, which is actually one of the “GameStatus” enumerations i have. What it does is that there are conditionals on the OnGUI() and Update() functions that control the actions and buttons/labels/textfields/horizontal scrolls that appear. There is a pause button that leads to the pause menu and a resume button inside the pause menu. The problem is that it cannot resume completely. The game can resume but the song cannot. And when i tried calling the audio.Play() function again, it played 2 songs at once, cause a mess. One that is resumed and a completely restarted version of the same song. I tried the PlayOneShot() function but it restarted the song instead of resuming it. So which function/what can i do to resume the song that was being played and paused using the “audio.Pause()” function?
1 Answer
1Have you tried to use the function:
audio.Play)(;
Make sure you are referencing your variables right.