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)