Exemple #1
0
    public void Update()
    {
        isSpeaking = dialogueManager.getIsActive();
        if (!isSpeaking)
        {
            Vector3 dir   = player.transform.position - transform.position;
            float   angle = Vector3.Angle(transform.forward, dir);

            if (isBusy)
            {
                playerController.EnableControlls(true);
                doneReading = true;
            }

            isBusy = false;
            if (Input.GetKeyDown(tempKey))
            {
                Interact();
            }
        }
        else if (isBusy)
        {
            if (Input.GetKeyDown(tempKey))
            {
                dialogueManager.DisplayNextSentence();
            }
        }
    }
Exemple #2
0
 public void SetPlayerMovements(bool state)
 {
     controllerScript.EnableControlls(state);
 }