Пример #1
0
    private void togglePause()
    {
        if (isPaused)
        {
            if (frameManager.IsAnimating)
            {
                return;
            }

            songNotesController.ResumeSong();
            videoPlayer.Play();
            frameManager.HideActiveFrame();
            isPaused = false;
        }
        else
        {
            if (frameManager.IsAnimating)
            {
                return;
            }

            videoPlayer.Pause();
            songNotesController.PauseSong();
            frameManager.ShowFrame(0);
            isPaused = true;
        }
    }