So I’ve this recreation and lengthy story brief a participant strikes to things which are coloured pink when the area bar is hit they flip inexperienced… now that’s simply the fundamentals
What I’ve achieved is
Created a price that will increase by one when the item turns inexperienced
And that worth goes down as soon as it’s again to pink
With this being mentioned there are 4 objects that the participant can change the colour of on area at press
These objects are all situations of the identical prefab
The worth growing and lowering must equal 4 earlier than the extent can advance
However when the item turns inexperienced from pink on area bar the worth goes up one
After I go to do the identical on one other occasion that isn’t is 0 and once I repair it it goes up one
How do I get the int to go up consecutively til it equals 4 and never simply up by one for each separate occasion
Sorry if this doesn’t make sense