示例#1
0
 void Awake()
 {
     anim = GetComponent <Animation>();
     foreach (GameObject go in contents)
     {
         HandWriting handWritting = go.AddComponent(typeof(HandWriting)) as HandWriting;
         handWritting.Init(go.GetComponentInChildren <Text>().text);
     }
 }
示例#2
0
 void Awake()
 {
     mainSection  = GetComponentInParent <MainSection>();
     handWritting = gameObject.AddComponent(typeof(HandWriting)) as HandWriting;
     handWritting.Init(field.text);
 }