private void DropFromPlayersHands() { PlayerDroppedObject?.Invoke(); if (HandleInputCoroutine != null) { StopCoroutine(HandleInputCoroutine); } rigidbody.useGravity = true; rigidbody.freezeRotation = false; rigidbody.isKinematic = false; InPlayersHands = false; IsBeingRotated = false; ReachedPickupPosition = false; playerCameraRotation.EnableRotation(); }
public void PlayerStoppedInteraction() { PlayerInteractingWithDoor = false; AimDotUI.Instance.EnableAimDot(); AimDotUI.Instance.ChangeAimDotBackToNormal(); playerCameraRotation.EnableRotation(); if (interactWithDoorCoroutine != null) { StopCoroutine(interactWithDoorCoroutine); interactWithDoorCoroutine = null; } }