LTDescr.setCanvasPlaySprite C# (CSharp) Method

setCanvasPlaySprite() public method

public setCanvasPlaySprite ( ) : LTDescr
return LTDescr
    public LTDescr setCanvasPlaySprite()
    {
        this.type = TweenAction.CANVAS_PLAYSPRITE;
        this.initInternal = ()=>{
            this.uiImage = trans.gameObject.GetComponent<UnityEngine.UI.Image>();
            this.fromInternal.x = 0f;
        };
        this.easeInternal = ()=>{
            newVect = easeMethod();
            val = newVect.x;
            int frame = (int)Mathf.Round( val );
            this.uiImage.sprite = this.sprites[ frame ];
        };
        return this;
    }
LTDescr