So I’m making an infinite runner game, and I want preset formations to be made, but every time I add one, it takes a lot of time to make a new variable, write a little script around it, and then repeat that process for every other one… now the way I have it set up is that it has public gameobjects labelled “Stage1”, “Stage2” etc. but I want one variable in the top, preferably an int, that determines how many public variables are shown. (for instance if that variable is 2, you have Stage 1 and 2, but if it is 15, you have stage 1 - 15). I saw it in a video, but I can’t find it back, tried googling everywhere, also no success.
so yeah, how to make an int determine how many variables come afterwards?