コード例 #1
0
 private void Awake()
 {
     instance       = this;
     buttons        = GetComponentsInChildren <Button>();
     skillAPI       = GetComponent <TecktalSkillsAPI>();
     historyButtons = new List <HistoryButton>();
 }
コード例 #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
 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();
         }
     }
 }