// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.A)) { } if (fileListHandler != null) { if (fileListHandler.Update()) { DisplayUIObjects(fileListHandler.directoryNames); DisplayUIObjects(fileListHandler.fileNames); StartCoroutine(Slideshow(fileListHandler.fileNames)); fileListHandler = null; } } }
public void DisplayPath(string path) { /*if (path == "Desktop") * { * //upButton.GetComponent<CompressibleUI>().Expand(); * //upButton.GetComponent<CompressibleUI>().enabled = false; * upButton.GetComponent<Button>().interactable = false; //Cannot navigate above Desktop, so disable the up button * * } * * else * { * upButton.GetComponent<Button>().interactable = true; * upButton.GetComponent<CompressibleUI>().enabled = true; * }*/ ClearUIObjects(); //Clear the panel of all the objects from the current directory fileListHandler = new FileListHandler(path); fileListHandler.Start(); currentPath = path; pathText.text = currentPath; }