LTDescr.setOnComplete C# (CSharp) Méthode

setOnComplete() public méthode

public setOnComplete ( Action onComplete, object onCompleteParam ) : LTDescr
onComplete Action
onCompleteParam object
Résultat LTDescr
    public LTDescr setOnComplete( Action<object> onComplete, object onCompleteParam )
    {
        this._optional.onCompleteObject = onComplete;
        this.hasExtraOnCompletes = true;
        if(onCompleteParam!=null)
            this._optional.onCompleteParam = onCompleteParam;
        return this;
    }

Same methods

LTDescr::setOnComplete ( Action onComplete ) : LTDescr
LTDescr::setOnComplete ( Action onComplete ) : LTDescr

Usage Example

        public override void ActionStart()
        {
            tweenDescriptor = LeanTween.moveLocal(ActionObject, GetMoveToPosition(), MoveToActionData.time);

            tweenDescriptor.setEase(EaseType);
            tweenDescriptor.setOnComplete(OnFinish);
        }
All Usage Examples Of LTDescr::setOnComplete
LTDescr