Esempio n. 1
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. 2
0
 public void OnEnrollSuccess(string msg)
 {
     if (!msg.Contains("\"status\":\"Success\""))
     {
         UnexpectedError();
         return;
     }
     else
     {
         Show("Congratulations! " + videoInfo.title + " purchased.");
         LearningHistory lh = LearningHistory.GetInstance();
         if (lh != null)
         {
             lh.Load();
         }
     }
 }