Can you change fillAmount to a float value?
I want to change the fillAmount of an image to be a float, so that I can compare it with a number.It's something similar with how Adventure Capitalist works.You click the button and after some moments have passed you get your money. Also you can suggest me how to do that if my idea is not possible. Thanks in advance!
What do you mean exactly? Image.fillAmount is a float and you can compare it like any float.
Though i have to say it's a bad program$$anonymous$$g practice to store game logic values into UI elements (it sounds like that's what you are about to do). Rather declare a float to keep track of the cooldown, and make your UI act based on that value
Thanks for the advice.When I ran the program it said that it can't convert bool to float, that's why I asked this question.I will use your method and return if I have any problems.