Ejemplo n.º 1
0
        public void Pause()
        {
            // Pause the player
            if (AudioSubPanel != null && IsEnabled(typeof(AudioSubpanel)))
            {
                AudioSubPanel.Pause();
            }
            if (VideoSubPanel != null && IsEnabled(typeof(VideoSubpanel)))
            {
                VideoSubPanel.Pause();
            }

            // Pause Hook.
            if (OnPause != null)
            {
                OnPause();
            }


            if (PlayPauseText != null)
            {
                PlayPauseText.text = _playCharacter;
            }

            _isPaused = true;
        }
Ejemplo n.º 2
0
        private void Pause()
        {
            // Pause the player
            if (m_audioSubpanel != null)
            {
                m_audioSubpanel.Pause();
            }
            if (m_videoSubpanel != null)
            {
                m_videoSubpanel.Pause();
            }

            m_isPaused = true;
        }