void Awake() { inputs = FindObjectOfType <PlayerInput>(); distChecker = FindObjectOfType <DistToNPC>(); pBoard = Instantiate(dialogPromptBoard, new Vector3(0, 2, 0), new Quaternion(0, 0, 0, 0)); this.ui = UIManager.ui; fadeOut(); }
[SerializeField] Dialogue dialogue; //Contains all the NPC data private void Awake() { npc = gameObject; pos = transform.position; gm = FindObjectOfType <DistToNPC>(); }