void OnLoad() { if (m_selectedRow != null) { string trimmed = m_selectedRow.GetText().Trim().ToLower(); m_savePath = PathManager.instance.SavePath + "/" + trimmed + PathManager.instance.m_packageExtension; if (File.Exists(m_savePath)) { m_meshManager.Load(m_savePath); Hide(); } else { // Show popup? UIManager.instance.ShowModal("Load", "The requested file does not exist.", new string[] { "Ok" }, null); } } }