private void Readable() { if ((Input.GetButtonDown("Select")) && !Reading) { cameraManagerScript.ChangeCameraPriority(detectInteractableObjects); if (detectInteractableObjects.collider.gameObject.GetComponentInChildren <SimpleDialogTrigger>() != null) { SimpleDialogTrigger book = detectInteractableObjects.collider.gameObject.GetComponentInChildren <SimpleDialogTrigger>(); book.Interact(); } Reading = true; disable.DisablePlayerMovement(); } }
private void DisablePlayerMovement() { disable.DisablePlayerMovement(); }