Skip to content

Commit

Permalink
Merge pull request #36 from arav-jp/develop
Browse files Browse the repository at this point in the history
Add TerrainManager.Reset() function
  • Loading branch information
Autumn60 authored Jul 7, 2023
2 parents bacebe2 + 2736925 commit 6989dcf
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ private void OnApplicationQuit()
_terrain.terrainData.SetHeights(0, 0, _heightmap_original);
}

public void Reset()
{
_terrain.terrainData.SetHeights(0, 0, _heightmap_original);
}

public void AddOffset(float offset)
{
for (int x = 0; x < heightmapResolution; x++)
Expand Down

0 comments on commit 6989dcf

Please sign in to comment.