LTDescr.setTextColor C# (CSharp) Method

setTextColor() public method

public setTextColor ( ) : LTDescr
return LTDescr
    public LTDescr setTextColor()
    {
        this.type = TweenAction.TEXT_COLOR;
        this.initInternal = ()=>{
            this.uiText = trans.gameObject.GetComponent<UnityEngine.UI.Text>();
            this.setFromColor( this.uiText != null ? this.uiText.color : Color.white );
        };
        this.easeInternal = ()=>{
            newVect = easeMethod();
            val = newVect.x;
            Color toColor = tweenColor(this, val);
            this.uiText.color = toColor;
            if (dt!=0f && this._optional.onUpdateColor != null)
                this._optional.onUpdateColor(toColor);

            if(this.useRecursion && trans.childCount>0)
                textColorRecursive(this.trans, toColor);
        };
        return this;
    }
LTDescr