public override void OnEnable() { base.OnEnable(); _uiTweenAlpha = target as UITweenAlpha; _image = _uiTweenAlpha.GetComponent <Image>(); _text = _uiTweenAlpha.GetComponent <Text>(); }
public override void OnInspectorGUI () { UITweenAlpha tweenalpha = target as UITweenAlpha; base.OnInspectorGUI (); if(!tweenalpha.dynamicBind) EditorETweenUITools.OnDrawGUI<Graphic>(tweenalpha.gameObject, tweenalpha.listGraphic); if (GUI.changed) { if (tweenalpha.dynamicBind) tweenalpha.listGraphic.Clear(); EditorTools.SetDirty(tweenalpha); } }