Beispiel #1
0
    public void OnTesteNovoClick()
    {
        //Cria um novo terreno e vai pro editor
        TerrainMK2Service terrainService = new TerrainMK2Service();
        TerrainMK2        terrain        = terrainService.NewMockTerrain();

        terrain = terrainService.SaveTerrain(terrain);

        var jsonfiedTerrain = JsonConvert.SerializeObject(terrain);

        PlayerPrefs.SetString("currentTerrain", jsonfiedTerrain);
        SceneManager.LoadScene("TerrainEditor");
    }
Beispiel #2
0
 public void OnSalvarClick()
 {
     terrain = terrainService.SaveTerrain(terrain);
 }