void Start() { talkBox = GameObject.Find("HallFriendTalks"); playMusic = GameObject.Find("Sounds").GetComponent <AudioSource>(); playCompSong1 = GameObject.Find("OldSong").GetComponent <AudioSource>(); inkScript = GameObject.Find("HallFriendTalks").GetComponent <InkScript>(); friends = GameObject.FindGameObjectsWithTag("friendly"); animator = GetComponent <Animator>(); }
private void Awake() { ink = FindObjectOfType <InkScript>(); ink.GameEventFired += OnGameEventFired; }