Пример #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>();
 }