示例#1
0
        public void OnClick()
        {
            Debug.Log("On History Button Click");
            VideoPlayer360 vp = VideoPlayer360.GetInstance();

            if (vp != null)
            {
                Debug.Log("Found Video Player 360");
                vp.Play(module.URL_Video, module);
                currentIndex = index;
            }
        }
示例#2
0
 public void OnClick()
 {
     Debug.Log("On Video Button Click");
     if (LearningHistory.GetInstance().Contains(title))
     {
         VideoPlayer360 vp = VideoPlayer360.GetInstance();
         if (vp != null)
         {
             Debug.Log("Found Video Player 360");
             vp.Play(videoURL, module);
         }
     }
     else
     {
         VideoScreen.GetInstance().proceedPopup.Set(this);
     }
 }
示例#3
0
 private void Awake()
 {
     ytdlCore = GetComponent <YTDLCore>();
     instance = this;
 }