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