TO SQUASH: Fixed issue.
This commit is contained in:
@@ -65,12 +65,22 @@ public class MusicManager : MonoBehaviour
|
||||
{
|
||||
if (needsReset)
|
||||
{
|
||||
if (audioSource.isPlaying)
|
||||
{
|
||||
audioSource.Stop();
|
||||
}
|
||||
|
||||
audioSource.clip = null;
|
||||
clipsQueue.Clear();
|
||||
ResetQueue();
|
||||
needsReset = false;
|
||||
}
|
||||
|
||||
audioSource.UnPause();
|
||||
if (audioSource.clip != null && !audioSource.isPlaying)
|
||||
{
|
||||
audioSource.UnPause();
|
||||
}
|
||||
|
||||
isPaused = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user