void EndDialogue() { animator.SetBool("isOpen", false); player.setNoEnemies(false); shooting.setShoot(true); player.setStopMovement(true); }
public void TriggerDialogue() { //Time.timeScale = 0f; player = (MovementScript)GameObject.FindWithTag("Player").GetComponent(typeof(MovementScript)); shooting = (GunFire)GameObject.FindWithTag("Player").GetComponent(typeof(GunFire)); player.setNoEnemies(true); shooting.setShoot(false); player.setStopMovement(false); FindObjectOfType <DialogueManager>().StartDialogue(conversation.conversation, isExitDialogue); }