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; }
private void Pause() { // Pause the player if (m_audioSubpanel != null) { m_audioSubpanel.Pause(); } if (m_videoSubpanel != null) { m_videoSubpanel.Pause(); } m_isPaused = true; }