Example #1
0
 // Use this for initialization
 void Start()
 {
     audio = GetComponentInParent <AudioSource>();
     if (!select)
     {
         select = (AudioClip)Resources.Load("Sound/select");
     }
     selecter = transform.parent.transform.Find("Chara").GetComponent <CharacterSelecter>();
 }
Example #2
0
 // 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();
 }
 private void Awake()
 {
     characterSelecter = FindObjectOfType <CharacterSelecter>().
                         GetComponent <CharacterSelecter>();
 }