Ejemplo 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);
     }
 }
Ejemplo 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();
         }
     }
 }