// Use this for initialization void Start() { audio = GetComponent <AudioSource>(); if (!select) { select = (AudioClip)Resources.Load("Sound/select"); } fade = GameObject.Find("Canvas").transform.Find("Image").GetComponent <FadeControl>(); changer = GameObject.Find("SceneChanger").GetComponent <ChangeScene>(); fade.FadeIn(); }
// Use this for initialization void Start() { audio = GetComponent <AudioSource>(); if (!enter) { enter = (AudioClip)Resources.Load("Sound/enter"); } fade = GameObject.Find("Canvas").transform.Find("Image").GetComponent <FadeControl>(); name0 = GameObject.Find("Name_0").GetComponentInChildren <CharacterSelecter>(); name1 = GameObject.Find("Name_1").GetComponentInChildren <CharacterSelecter>(); name2 = GameObject.Find("Name_2").GetComponentInChildren <CharacterSelecter>(); textRender = GetComponent <TextRender>(); changer = GetComponent <ChangeScene>(); textRender.Draw("START", 1); fade.FadeIn(); }