I use an event trigger with the following line to change the value of openFireDistance by increments of 1. However, it changes the values so fast that it usually changes by 2. I tried "openFireDistance += 1 * time.deltaTime/4; but there was no difference. Is there a way to slow down this rate of change?
The code is in Update. I use buttons with the event triggers that change the “increaseFireDistance” bool with the “increaseFireRangePressed” etc methods. I did try to stick the “openFireDistance” line into the “increaseFireRangePressed” methods but then I have to click on the plus/minus arrow for every 1 of change rather than just hold the button down.