Hey there everyone!
So, i've been trying to learn various different programming languages, and i've found that trying to build my own engine is...well...unnecessary and WAY too complicated for me to learn right now. So i've jumped over to Unity and LOVE it, though, there are a few things that i've run into that i didn't know, through experimentation and tutorials i've figured most of them out, though, there is one that either no one is talking about, OR is so simple to do that i am over thinking the entire process (completely plausible).
What i'm wanting to do is,
i have different spots that i want the player to be able to click to open the UI, basically like in Breeding Season, when you click the building it opens a UI to interact with the building
I want to limit the amount of memory consumed by reusing one script and one UI and just change different aspects of it to fit the spot (if possible, i figured using some really simple IF statements in the script would work...wait...)
If anyone out there uses Unity and could possibly tell me if my thought process would work...
Using If statements to change the various texts of the buttons and the stuff in the feilds, connect the script to the objects, in the script, have it pull the UI up when the player clicks, then run through the IF statements to pick up what it needs, IF the gameobject is this object, pull this stuff and fill in the UI, change the buttons to do this...would that require different buttons or can i use the script to change that?
I tend to just ramble on so if any of this doesn't make sense please let me know!
Hope someone out there can help!