public void Awake() { main = this; Func <string, TextTransInstance> gen = (name) => { var t = transform.Find(name); var text = t.gameObject.GetComponent <Text>(); return(new TextTransInstance(text, this)); }; center = gen("Center"); bottom = gen("Bottom"); }
public TextTransInstance(Text text, TextTrans trans) { this.text = text; this.trans = trans; ad = ApCtrl.CreateAlphaData(ApCtrl.TextAlpha(text), trans); }