LTDescr.reset C# (CSharp) Method

reset() public method

public reset ( ) : void
return void
    public void reset()
    {
        this.toggle = this.useRecursion = this.usesNormalDt = true;
        this.trans = null;
        this.passed = this.delay = this.lastVal = 0.0f;
        this.hasUpdateCallback = this.useEstimatedTime = this.useFrames = this.hasInitiliazed = this.onCompleteOnRepeat = this.destroyOnComplete = this.onCompleteOnStart = this.useManualTime = this.hasExtraOnCompletes = false;
        this.tweenType = LeanTweenType.linear;
        this.loopType = LeanTweenType.once;
        this.loopCount = 0;
        this.direction = this.directionLast = this.overshoot = this.scale = 1.0f;
        this.period = 0.3f;
        this.speed = -1f;
        this.easeMethod = this.easeLinear;
        this.from = this.to = Vector3.zero;
        this._optional.reset();

        global_counter++;
        if(global_counter>0x8000)
            global_counter = 0;
    }

Usage Example

Beispiel #1
0
        private static void StopTween(LTDescr instance)
        {
            if (instance == null)
            {
                return;
            }

            LeanTween.cancel(instance.uniqueId);
            instance.reset();
        }
All Usage Examples Of LTDescr::reset
LTDescr