public void Update() { JumpButton.Get(); ShootButton.Get(); HorizontalAxis.AxisUpdate(); if (JumpButton.Down) { jumpCounter = jumpBuffer; } if (ShootButton.Held) { shootCounter = shootBuffer; } }
void Update() { JumpButton.Get(); ShootButton.Get(); HorizontalAxis.AxisUpdate(); //it should be placed here instead of FixedUpdate if (JumpButton.Down) { jumpCounter = jumpBuffer; } if (ShootButton.Held) { shootCounter = shootBuffer; } }