/// <summary> /// Asks for to the UIDirectoruFinder component that looking /// the folder that are in the new level. /// </summary> private void OpenClick() { if (KindOfItem) { Finder.PathToSearch = PathToSearch.Trim(); Finder.Search(); } else { Debug.LogWarning("UIDirectoryFinderButton: The \"" + PathToSearch + "\" path is a file, it\'s can\'t open."); } }
/// <summary> /// Asks for to the UIDirectoryFinder component that looking back /// the folders that are in the previous level. /// </summary> private void BackClick() { try { Finder.PathToSearch = Directory.GetParent(PathToSearch.Trim()).FullName.Trim(); Finder.Search(); } catch (NullReferenceException) { Debug.LogWarning("UIDirectoryFinderButton: PathToSearch is a null reference."); } catch (ArgumentNullException) { Debug.LogWarning("UIDirectoryFinderButton: PathToSearch is a null argument."); } catch (ArgumentException) { Debug.LogWarning("UIDirectoryFinderButton: PathToSearch is an empty string or contains spaces."); } }