Skip to content

Commit

Permalink
just comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vyshnovka committed Feb 14, 2024
1 parent e7d5339 commit 6488ba8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Assets/Scripts/Managers/SaveManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class SaveManager : MonoBehaviour
/// <summary>Save float array (height map) to a .dat file.</summary>
public void SaveFloatArray()
{
//? Also need to save the terrain image.
//TODO Save the terrain image as well.
var arrayToSave = terrainManager.HeightMap;
string filePath = EditorUtility.SaveFilePanel("Save Height Map as...", "", fileName, "dat");

Expand Down
1 change: 1 addition & 0 deletions Assets/Scripts/Managers/TerrainGenerationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class TerrainGenerationManager : MonoBehaviour
private List<Gradient> gradients;

private AlgorithmType selectedAlgorithmType = AlgorithmType.None;
//TODO Add this tooltip as a warning to UI.
[Tooltip("Values ​​below 128 are not recommended as this will result in low quality textures. \nValues ​​above 2048 may lead to poor performance on some devices.")]
private Size selectedSize = Size._256;
private GradientType selectedGradientType = GradientType.Grayscale;
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Managers/UIManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void OnEnable()

void OnDisable()
{
//? This is not working.
//? This is not working. Need to unsubscribe.
//root.Q<Button>("Generate").clicked -= () => terrainGenerator.DisplayResult();
//root.Q<Button>("Success").clicked -= () => terrainGenerator.DisplayResult();
//root.Q<Button>("Save").clicked -= () => saveManager.SaveFloatArray();
Expand Down

0 comments on commit 6488ba8

Please sign in to comment.