// Use this for initialization void Start() { buttonDialogueScript = GetComponentInParent <InteractableArea>(); dm = FindObjectOfType <DialogueManager>(); inventoryScript = GameObject.Find("InventoryManager").GetComponent <Inventory>(); soundBaloon = GameObject.Find("Windows Balloon").GetComponent <AudioSource>(); soundChimes = GameObject.Find("chimes").GetComponent <AudioSource>(); }
// Use this for initialization void Start() { dialogueScript = GetComponentInParent <InteractableArea>(); inventoryScript = GameObject.Find("InventoryManager").GetComponent <Inventory>(); }