void Start() { //Initialization CloneShelf(); CloneBook(); LoadBookCover(); BackButton.onClick.AddListener(BackToCatalogue); DeleteButton.onClick.AddListener(() => { for (int i = 0; i <= BookPageLength[CurrentBookIndex]; i++) { if (i < BookPageLength[CurrentBookIndex]) { ImageDownloader.DeleteFile(directoriesName[CurrentBookIndex], i); } else { ImageDownloader.RemoveDirectory(directoriesName[CurrentBookIndex]); } } }); SearchingLabel.onClick.AddListener(() => { SearchingPanel.gameObject.SetActive(true); BookShelfPanel.SetActive(false); }); }