So i have a slider that that updates on every key press, and it should go up by one whole step, but instead it goes either two,three, and sometimes it goes one step. Please advise me on this one <3
public void onInteract()
{
float currentTime = Time.time;
if (peaceStart != 0f)
{
peaceEnd = currentTime - peaceStart;
Debug.Log(peaceEnd);
}
peaceStart = currentTime;
slider.value++;
}