Hi all -
So, I'm chopping away at my incremental game, being fairly new to Unity and all. For the sake of simplicity, let's say I've got three primary resources (food, wood, and ore) that I store as public integers in GameController. I then have a number of buttons that I can click to spend these resources (e.g., build a house, research something, etc etc).
The idea is that these buttons are disabled when the player doesn't have enough resources to do whatever it is that they do (e.g., if...
Elegant solution for setting interactable to 'false' for numerous buttons
So, I'm chopping away at my incremental game, being fairly new to Unity and all. For the sake of simplicity, let's say I've got three primary resources (food, wood, and ore) that I store as public integers in GameController. I then have a number of buttons that I can click to spend these resources (e.g., build a house, research something, etc etc).
The idea is that these buttons are disabled when the player doesn't have enough resources to do whatever it is that they do (e.g., if...
Elegant solution for setting interactable to 'false' for numerous buttons