Hi,
So I just learned how to use Arrays and its helping.
I'm trying to create a text message system where you press a keyboard button and it displays a message. I have all of them written down and have them as childs to a parent gameobject. the messages are
buttons which have
text as children.
I want to use 1 fsm to control the messages.
Right now, I'm using an Array variable to manually enter all the message buttons then I use an
Array get and store them in another variable.
I then use
Array getnext to loop then activate the message with a button press and it works fine.
What I need help with is that instead of manually entering all the values myself, I would like to get them automatically.
I've tried using Get child recursively but that doens't work because it gets everything including the text, instead of just the
buttons.
I know i can use get owner in each messages fsm but that would create more fsm's and I would like to use only 1 fsm to manage everything if possible.
Can someone please help? I need to be able to get only the buttons and store them in a variable.
below are pics of my FSM's.