Skip to content

Commit 29b18a2

Browse files
committed
removed start functions to prevent map from being removed when pressing play
1 parent a3f4b38 commit 29b18a2

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

Assets/Global Scripts/LevelGenerator.cs

+1-6
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@ public class LevelGenerator : MonoBehaviour {
2020

2121
[Tooltip("The settings of our map")]
2222
public MapSettings mapSetting;
23-
24-
void Start()
25-
{
26-
GenerateMap();
27-
}
28-
23+
2924
private void Update()
3025
{
3126
if (Input.GetKeyDown(KeyCode.N))

Assets/Multi-Generation Example/Scripts/LevelGeneratorStack.cs

+1-6
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,7 @@ public class LevelGeneratorStack : MonoBehaviour
2121
public List<MapSettings> mapSettings = new List<MapSettings>();
2222

2323
List<int[,]> mapList = new List<int[,]>();
24-
25-
void Start()
26-
{
27-
GenerateMap();
28-
}
29-
24+
3025
private void Update()
3126
{
3227
if(Input.GetKeyDown(KeyCode.N))

0 commit comments

Comments
 (0)