jeudi 25 octobre 2018

Random array or list size at scene start

I have an array of blocks. I want it to be with a random size/length when the scene starts.

 public GameObject[] blocks;

However if I try random range with an array I get all kinds of errors. Same with List<>.

I want my scene to start with a random number of items (within a range).

Any suggestions?




Aucun commentaire:

Enregistrer un commentaire