예제 #1
0
 // 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>();
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     dialogueScript  = GetComponentInParent <InteractableArea>();
     inventoryScript = GameObject.Find("InventoryManager").GetComponent <Inventory>();
 }