override protected void InitializeSetParam() { if (text == null || text.Length == 0) { text = editMethods.GetTextObj(this.gameObject); button = editMethods.GetButtonObj(this.gameObject); } }
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(); }