// Use this for initialization void Start() { #if UNITY_WEBGL PMR_SceneManager.LoadScene(PMR_SceneSetup.SCENES.MAIN_MENU, 1f, PMR_EventSetup.Menu.INIT); #else m_videoPlayer.loopPointReached += EndReached; #endif }
/// <summary> /// End of the videoreached /// </summary> /// <param name="vp"></param> void EndReached(UnityEngine.Video.VideoPlayer vp) { PMR_SceneManager.LoadScene(PMR_SceneSetup.SCENES.MAIN_MENU, 1f, PMR_EventSetup.Menu.INIT); }