I have code that increments a value (int += 1
) on a button press. Separately, I want to decrement that same value (int -= 1
) if the player does not press the button within a set time period. (lets say 2.0s).
I know we could use Button.InteractedWithEvent.Await()
here but I’m coming up blank.
Thanks!