Esempio n. 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;
            }
        }
Esempio n. 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);
     }
 }
Esempio n. 3
0
 private void Awake()
 {
     ytdlCore = GetComponent <YTDLCore>();
     instance = this;
 }