Esempio n. 1
0
 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();
 }
Esempio n. 2
0
    [SerializeField] Dialogue dialogue; //Contains all the NPC data

    private void Awake()
    {
        npc = gameObject;
        pos = transform.position;
        gm  = FindObjectOfType <DistToNPC>();
    }