Hi, sorry if this has been asked before, but I haven't found any answer.
I'm trying to make my script choose a random gameobject from my array.
GameObject[] spawnPoints = GameObject.FindGameObjectsWithTag("point");
How do I pick a random object from that array?
Thanks, Andreas.
↧