diff --git a/Assets/Scripts/ProceduralGeneration.cs b/Assets/Scripts/ProceduralGeneration.cs index aee77a2..fe13c59 100644 --- a/Assets/Scripts/ProceduralGeneration.cs +++ b/Assets/Scripts/ProceduralGeneration.cs @@ -19,7 +19,7 @@ public class ProceduralGeneration : MonoBehaviour this.spawnedLevelBlocks.Add(lastBlock); } - List drawLoop(GameObject lastObject, GameObject objToSpawn) + List spawnSpiralOfPlatforms(GameObject lastObject, GameObject objToSpawn) { // configuration: float horizontalDistancePerPlatform = 0.5f; @@ -116,7 +116,7 @@ public class ProceduralGeneration : MonoBehaviour } else { - List instantiatedGameObjectLists = this.drawLoop(lastBlock, levelBlocks[0]); + List instantiatedGameObjectLists = this.spawnSpiralOfPlatforms(lastBlock, levelBlocks[0]); foreach (var spavnedBlock in instantiatedGameObjectLists) { this.spawnedLevelBlocks.Add(spavnedBlock);