Question by
cesarpc1998 · Jun 10, 2020 at 12:29 AM ·
arraydestroychildloop
Check destroy order
Hello, I would like to implement something for my game, but I don't know how or where to start. I would like to set a destroy order, a good example of this is that I have a red ball and has a Number 1 that indicates that the player needs to destroy that ball first and so on, and if he/she destroys other balls they lose. I think I need a loop that checks into an array because if I add another ball in the game or delete one the script will not work.
Comment
Your answer
Follow this Question
Related Questions
Cycle through objects on mouse click 1 Answer
how to check all elements in array 2 Answers
Which one to use for, while or something else? 1 Answer
if ALL items in array are something 1 Answer
How to destroy child of GameObject? 1 Answer