// Use this for initialization void Start () { thisimage = GetComponent<RawImage>(); sound = GetComponent<AudioSource>(); dialoguescript = GameObject.Find("Character").transform.GetChild(1).GetComponent<VillageDialogue>(); bgm = GameObject.Find("BGM").GetComponent<AudioSource>(); }
// Use this for initialization void Start() { thisimage = GetComponent <RawImage>(); sound = GetComponent <AudioSource>(); dialoguescript = GameObject.Find("Character").transform.GetChild(1).GetComponent <VillageDialogue>(); bgm = GameObject.Find("BGM").GetComponent <AudioSource>(); }