1
0
Fork 0

heros can use all lanes now

This commit is contained in:
Ava Gaiety Wroten 2021-07-11 10:57:39 -05:00
parent dce0722766
commit 0c9b53280b

View file

@ -29,7 +29,7 @@ public class HeroSpawner : MonoBehaviour
int randomY; int randomY;
do do
{ {
randomY = Random.Range(0, numberOfYPositions - 1); randomY = Random.Range(0, numberOfYPositions);
} while(spawnedPositions[randomY]); } while(spawnedPositions[randomY]);
spawnedPositions[randomY] = true; spawnedPositions[randomY] = true;