From 0c9b53280bef70ffc08eb20723600323a493fe97 Mon Sep 17 00:00:00 2001 From: Ava Gaiety Wroten Date: Sun, 11 Jul 2021 10:57:39 -0500 Subject: [PATCH] heros can use all lanes now --- Assets/Scripts/HeroSpawner.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/HeroSpawner.cs b/Assets/Scripts/HeroSpawner.cs index e7b9fb4..3348411 100644 --- a/Assets/Scripts/HeroSpawner.cs +++ b/Assets/Scripts/HeroSpawner.cs @@ -29,7 +29,7 @@ public class HeroSpawner : MonoBehaviour int randomY; do { - randomY = Random.Range(0, numberOfYPositions - 1); + randomY = Random.Range(0, numberOfYPositions); } while(spawnedPositions[randomY]); spawnedPositions[randomY] = true;