From 51c43239fcae2b1a97787a655719983421e4c27a Mon Sep 17 00:00:00 2001 From: GamerClassN7 Date: Sat, 29 Jan 2022 20:37:49 +0100 Subject: [PATCH] Fix --- Assets/Scripts/ProceduralGeneration.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/Scripts/ProceduralGeneration.cs b/Assets/Scripts/ProceduralGeneration.cs index 2f29df0..22a71c1 100644 --- a/Assets/Scripts/ProceduralGeneration.cs +++ b/Assets/Scripts/ProceduralGeneration.cs @@ -25,6 +25,7 @@ public class ProceduralGeneration : MonoBehaviour Vector3 nextBlockLocation = new Vector3(lastObject.transform.position.x, lastObject.transform.position.y, lastObject.transform.position.z + b.size.z + 1.0f); + return Instantiate(objToSpawn, nextBlockLocation, (Quaternion.identity)); } List spawnSpiralOfPlatforms(GameObject lastObject, GameObject objToSpawn)