示例#1
0
    override protected void StartMain()
    {
        curEditData.editType = EditType.Button;

        editMethods = this.gameObject.AddComponent <TextModifyMethods> ();

        baseTextObj = (TextObj)baseObj;

        editTransform = this.gameObject.GetComponent <RectTransform> ();
        baseTransform = baseObj.gameObject.GetComponent <RectTransform> ();

        editButton = editMethods.GetButtonObj(this.gameObject);

        editText = editMethods.GetTextObj(this.gameObject);

        SetAddListener();

        ChangeColorAllowPos();
    }
示例#2
0
 override protected void AwakeAfter()
 {
     editMethods = this.gameObject.AddComponent <TextModifyMethods> ();
 }