コード例 #1
0
    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");
    }
コード例 #2
0
 public TextTransInstance(Text text, TextTrans trans)
 {
     this.text  = text;
     this.trans = trans;
     ad         = ApCtrl.CreateAlphaData(ApCtrl.TextAlpha(text), trans);
 }