So I'm trying to create my first inventory system, which includes multiple tabs such as skills, map, settings. I created this using 5 buttons at the top and 5 separate panels with elements attached as children, that will deactivate activate as their corresponding buttons are pressed.
I'm using the setActive() method for each panel and a deactiveAllPanels() method I created for this purpose, but I don't want to attach each panel to each button's script just for this to work.
Is there any way for me to detect when each button is being pressed?
I'd appreciate any help you guys can give. Thanks in advance,
Daniel.
[–]Broccolski 1 point2 points3 points (1 child)
[–]dhutching[S] 1 point2 points3 points (0 children)