void Start() { uploadVideoPanel = GameObject.Find("UploadVideoPanel"); preloadVideoPanel = Credentials.FindInActiveObjectByName("PreloadVideoPanel"); // selectPatternPanel = Credentials.FindInActiveObjectByName("SelectPatternPanel"); // DELETE p = FindObjectOfType <PreloadVideoList>(); Button btn = selectBtn.GetComponent <Button>(); btn.onClick.AddListener(SelectTask); }
private static void Completed(object sender, AsyncCompletedEventArgs e) { Debug.Log("Files Downloaded"); p = FindObjectOfType <PreloadVideoList>(); // TODO: Show text on UI for files ready uploadVideoPanel.SetActive(false); preloadVideoPanel.SetActive(true); p.GenerateButtons(); // selectPatternPanel.SetActive(true); // DELETE // Send notifications when files are ready }