Exemple #1
0
    public static void SaveMapData()
    {
        App  app = UnityEngine.Object.FindObjectOfType <App>();
        WMSK map = WMSK.instance;

        map.geodataResourcesPath = Application.dataPath + "/StreamingAssets/Scenarios/" + app.GetScenario() + "/Geodata/SavedMap";
        string countryGeodata  = map.GetCountryGeoData();
        string provinceGeodata = map.GetProvinceGeoData();

        map.SetCountryGeoData(countryGeodata);
        map.SetProvincesGeoData(provinceGeodata);
    }