コード例 #1
0
        // 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
        }
コード例 #2
0
 /// <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);
 }