LTDescr.setTime C# (CSharp) Method

setTime() public method

public setTime ( float time ) : LTDescr
time float
return LTDescr
    public LTDescr setTime( float time )
    {
        float passedTimeRatio = this.passed / this.time;
        this.passed = time * passedTimeRatio;
        this.time = time;
        return this;
    }

Usage Example

Beispiel #1
0
 private void StartLeanTweenSlowMotion(LTDescr leanTweenObj, float slowMotionMultiplier, bool shouldReset)
 {
     if (!shouldReset)
     {
         leanTweenObj.setTime(leanTweenObj.time * slowMotionMultiplier);
         SetAnimatorSpeed(animator.speed / slowMotionMultiplier);
     }
     else
     {
         leanTweenObj.setTime(leanTweenObj.time / slowMotionMultiplier);
         SetAnimatorSpeed(1);
     }
 }
All Usage Examples Of LTDescr::setTime
LTDescr