public void Interact(InputAction.CallbackContext context) { if (!context.performed) { return; } if (target != null && !target.Equals(null)) // To make sure we have a target and it wasn't destroyed { target.Interact(); } }