예제 #1
0
    private void Disembark()
    {
        playerInteraction.ResetRotation();
        playerInteraction.busy      = false;
        playerInteraction.isDriving = false;
        playerInteraction.ragdollRoot.gameObject.SetActive(true);
        playerInteraction.thirdPersonInput.enabled = true;

        playerObject.transform.parent = null;
        playerObject = null;

        driveCam.Priority = 10;
        exiting           = false;

        playerInteraction.EnableCharacterControls();

        if (_siren != null)
        {
            _siren.enabled = false;
        }
    }