public void Fire(InputAction.CallbackContext context) { if (context.started) { currentWeapon.BeginFire(); } else if (context.canceled || context.performed) { currentWeapon.EndFire(); } }