I've been developing a game but there is something that I can't figure out because of being a little bit new in the language and the editor. I create some random characters that have a basic movement script. Yet I also use collision for making them stop when they touch something. So the problem occurs at this point. I should get all the characters in an array and then I should use a loop as far as I know but I cannot do that because I have a generator and I don't know the numbers of the characters and I can't add them as a component to main script.
So how can I solve this?
Aucun commentaire:
Enregistrer un commentaire