LTDescr.setTime C# (CSharp) 메소드

setTime() 공개 메소드

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

Usage Example

예제 #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