Skip to content

Commit 84bc308

Browse files
committed
Update PoissonMapLayerGenerator.cs
1 parent 9eedb4d commit 84bc308

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

Runtime/WorldMap/Layers/PoissonMapLayerGenerator.cs

+11-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@ namespace Gameframe.Procgen
55
[CreateAssetMenu(menuName = "Gameframe/Procgen/Layers/PoissonMapLayerGenerator")]
66
public class PoissonMapLayerGenerator : WorldMapLayerGenerator
77
{
8-
public float radius = 10;
9-
public int maxSamplesPerPoint = 30;
10-
public bool useRegions = true;
11-
public int edgeAvoidance = 0;
8+
[SerializeField]
9+
private float radius = 10;
10+
11+
[SerializeField]
12+
private int maxSamplesPerPoint = 30;
13+
14+
[SerializeField]
15+
private bool useRegions = true;
16+
17+
[SerializeField]
18+
private int edgeAvoidance;
1219

1320
public override void AddToWorld(WorldMapData mapData)
1421
{

0 commit comments

Comments
 (0)