title: How to repeat function while button is held down (New unity input system)
body: <p>Trying to repeat the function function <code>OnAttack()</code> continuously while a button is being held down. </p>
  
  <p>Basically I'm looking for an equivalent to  <code>Update() { GetKeyDown() {//code  }}</code> But with the input system.</p>
  
  <p>Edit: using a joystick, cant tell what button is being pressed.</p>