private FileBrowserDataRow InstantiateFileRow(FileInfo fname) { GameObject go = NGUITools.AddChild(gridPanel.gameObject, data_row_prefab.gameObject); FileBrowserDataRow data = go.GetComponent <FileBrowserDataRow>(); data.current_file = fname; data.browser = this; data.Initialize(); data_rows.Add(data); return(data); }
private FileBrowserDataRow InstantiateDirectoryRow(DirectoryInfo directory) { GameObject go = NGUITools.AddChild(gridPanel.gameObject, data_row_prefab.gameObject); FileBrowserDataRow data = go.GetComponent <FileBrowserDataRow>(); data.current_directory = directory; data.browser = this; data.Initialize(); data_rows.Add(data); return(data); }