public void LoadLevelClicked() { var filter = new SimpleFileBrowser.FileBrowser.Filter("xml", ".xml"); SimpleFileBrowser.FileBrowser.SetFilters(false, filter); SimpleFileBrowser.FileBrowser.ShowLoadDialog(FileLoaded, Canceled, false, Application.dataPath); EnableDisablePanels(false); }
public void SaveLevelClicked() { if (currentlyLoadedLevel != null) { currentlyLoadedLevel.Map = GameManager.instance.MapGenerator.GetMap(); var filter = new SimpleFileBrowser.FileBrowser.Filter("xml", ".xml"); SimpleFileBrowser.FileBrowser.SetFilters(false, filter); SimpleFileBrowser.FileBrowser.ShowSaveDialog(SavePathChosen, Canceled, false, Application.dataPath); EnableDisablePanels(false); } }