Event trigger changes values too fast.

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?

{
openFireDistance += 1;
}

your code is fine, but what triggers it? is it in Update() or will get called by another source? you should check what causes the rapid triggering.

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.

if(increaseFireDistance == true)
{
openFireDistance += 1;
}

 public void IncreaseRangePressed()
    {
        increaseFireDistance = true;
    }
    public void IncreaseRangeReleased()
    {
        increaseFireDistance = false;
    }