Example #1
0
    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);
    }
Example #2
0
 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);
     }
 }