Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - stepollo

Pages: [1]
1
NGUI 3 Support / Progress Bar help
« on: March 12, 2015, 09:58:46 AM »
Hello, I am learning Unity and NGUI recently so probably this is a really stupid question.
I have a progress bar on my game and it works. Now i have two problems. I know that I can set a value using this code:powerbar.value = 0.9f;
But how to add a value to an existing value? For example if the bar is set to 0.5f add 0.4f and get the value of 0.9f?
And how to decrease this value over time? I don't need a pre-written code, just some tips to get this by myself! Thank you all!!

Pages: [1]