Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     box = GameObject.Find("speechBox");
     box.transform.localScale = new Vector3(0, 0, 0);
     anim        = GetComponent <Animator>();
     childScript = GameObject.Find("speechText").GetComponent <autoType>();
     myText      = GameObject.Find("speechText").GetComponent <Text>();
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     box = transform.GetChild(1).GetChild(1).gameObject;
     box.transform.localScale = new Vector3(0, 0, 0);
     anim        = transform.GetChild(1).GetComponent <Animator>();
     childScript = transform.GetChild(1).GetChild(0).GetComponent <autoType>();
     myText      = transform.GetChild(1).GetChild(0).GetComponent <Text>();
 }