F
finn_bueno_
Guest
Hello!
For a small game I'm making I need buttons, and I got everything up and running, most works fine. But now I've come to what the button should do when it's pressed, and each button should do something different. The idea of having a different object for each button seems extremely messy to me (even with parenting). Is there a way to define code for each instance and call it when I want to?
Thanks in advance.
- Finn
For a small game I'm making I need buttons, and I got everything up and running, most works fine. But now I've come to what the button should do when it's pressed, and each button should do something different. The idea of having a different object for each button seems extremely messy to me (even with parenting). Is there a way to define code for each instance and call it when I want to?
Thanks in advance.
- Finn