Exemplo n.º 1
0
 // Opens the File Browser in the specified mode
 private void OpenFileBrowser(SfbMode mode, string path, Action <string[]> outputCallback, string[] extensions = null)
 {
     if (mode == SfbMode.Save)
     {
         fileBrowser.SaveFile(path, outputCallback, extensions);
     }
     else
     {
         fileBrowser.OpenFile(path, outputCallback, extensions);
     }
 }
Exemplo n.º 2
0
 private void OpenFileBrowser(SfbMode mode, string path, Action <string[]> outputCallback, string[] extensions = null)
 {
     controller.enabled = false;
     Cursor.visible     = true;
     if (mode == SfbMode.Save)
     {
         fileBrowser.SaveFile(path, outputCallback, extensions);
     }
     else
     {
         fileBrowser.OpenFile(path, outputCallback, extensions);
     }
 }