Exemple #1
0
    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();
    }
Exemple #2
0
    public void PlayerStoppedInteraction()
    {
        PlayerInteractingWithDoor = false;
        AimDotUI.Instance.EnableAimDot();
        AimDotUI.Instance.ChangeAimDotBackToNormal();
        playerCameraRotation.EnableRotation();

        if (interactWithDoorCoroutine != null)
        {
            StopCoroutine(interactWithDoorCoroutine);
            interactWithDoorCoroutine = null;
        }
    }