示例#1
0
    public override void OnEnable()
    {
        base.OnEnable();
        _uiTweenAlpha = target as UITweenAlpha;

        _image = _uiTweenAlpha.GetComponent <Image>();
        _text  = _uiTweenAlpha.GetComponent <Text>();
    }
示例#2
0
	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);
		}
	}