Exemplo n.º 1
0
        public void StopSong(bool dontInvokeEvent = false)
        {
            if (audioSource)
            {
                audioSource.Stop();
            }
            songHasStarted        = false;
            songStartEventInvoked = false;

            if (!dontInvokeEvent)
            {
                onSongFinished.Invoke();
            }

            trackManager.ClearAllTracks();
        }
Exemplo n.º 2
0
        public void StopSong(bool dontInvokeEvent = false)
        {
            if (audioSource)
            {
                audioSource.Stop();
            }
            songHasStarted        = false;
            songStartEventInvoked = false;

            if (!dontInvokeEvent)
            {
                resultsScreenObject.SetActive(true);
            }
            onSongFinished.Invoke();

            trackManager.ClearAllTracks();
        }