- Home /
How to have set different results from same UI button
I have several stats: Health, money, food and character sprite
I have a cube going across a scene interacting with several NPCS. I would like a system where each NPC can affect these stats and equipment I wear. How would I do the logic for this from a single pop up that would appear?
My logic would be give all NPCs a reference to the stat they want to change and two ints for the cost and gain amounts. But If I wanted to change the character sprite I don't know how to make the system abstract enough that it would know to change the sprite on a "yes" instead of a stat.
Your answer
Follow this Question
Related Questions
(Logic) Switch GameObjects With Slider Using Arrays 0 Answers
Click an object to show its group / structure / tree ? 0 Answers
Conditionals in UI Drag and Drop? 2 Answers
Understanding UI Logic 0 Answers
Encaplsue function in if statement 1 Answer