Hello,
I have a graphic progress bar which I declare here:
var barDisplay : float = 0;
It counts up from zero and if barDisplay is >=1 the game is over. That works fine.
I also have:
function subtractTimeFromBar () {
//How do You Subtract Time from barDisplay here?
Debug.Log ("addTimeToBar Called");
}
Which is called from a collision. This also works and is getting called as subtractTimeFromBar shows in the console.
When addTimeToBar is called, I would like to subtract anyNumberIsFine amount of time from the timer.
I’m not sure how to do this.
Any help is really appreciated.
Thanks in advance!