public void Stop()
{
if(m_CurrentState == MEDIAPLAYER_STATE.PLAYING)
Call_Pause();
m_bStop = true;
m_CurrentState = MEDIAPLAYER_STATE.STOPPED;
m_iCurrentSeekPosition = 0;
}
IEnumerator CheckInputVideo() { if (chapterVideo.m_strFileName == "putitback.mp4") { chapterVideo.Stop(); chapterVideo.UnLoad(); chapterVideo.Load("Chapter04b-HD.mp4"); pauseUI.SetActive(false); yield return(new WaitForSeconds(1f)); mainUI.SetActive(true); enableNextBtn(); //chapterVideo.Play(); } else { chapterVideo.OnEnd -= onChapterVideoEnded; chapterVideo.Stop(); chapterVideo.UnLoad(); Resources.UnloadUnusedAssets(); System.GC.Collect(); SceneManager.LoadScene("Adventure1_6"); } }