This is short and sweet, thank you for this.
WarrenPeace
Creator of
Recent community posts
Unfortunately i had a system like that in the game but a bug crept in before i realized and was effectively removed.
You could spend coins on your own country and they would slowly convert to your country spitting out money more frequently.
When you stand in your country you can see it being highlighted. I changed the system to spend money and didn't account for it being a different script entirely that your home country used.
Sure it was fairly simple to put together
Use a UI Slider element
Make it non interactable
Use a script to make it progress in value (something like slider.value ++) in Update method
Then detect an input and pause the value.
Using some math you can determine what percentage it is (out of 0-1)
I Used Shader graph to make the bar itself (Green & Red zones) because i had scriptable objects to determine the min & max of the "safe zone" (Green zone that you hit to progress)
https://github.com/WarrrenPeace/Western-Standoff THIS is my GitHub that i used alongside making project, you'll find everything you need in there












