diff --git a/Assets/LeanTween/Framework/LTDescr.cs b/Assets/LeanTween/Framework/LTDescr.cs index 80eb3208..bd5249ed 100755 --- a/Assets/LeanTween/Framework/LTDescr.cs +++ b/Assets/LeanTween/Framework/LTDescr.cs @@ -972,6 +972,13 @@ public bool updateInternal(){ dt = LeanTween.dtManual; } + if(this.delay>0f){ + this.delay -= dt; + if (this.delay <= 0f) + // the actual delta time that "passed" should be + dt = -this.delay; + } + // Debug.Log ("tween:" + this+ " dt:"+dt); if(this.delay<=0f && directionLocal!=0f){ if(trans==null) @@ -1010,8 +1017,6 @@ public bool updateInternal(){ return isTweenFinished; } - }else{ - this.delay -= dt; } return false;