Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions Assets/LeanTween/Framework/LTDescr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -1010,8 +1017,6 @@ public bool updateInternal(){

return isTweenFinished;
}
}else{
this.delay -= dt;
}

return false;
Expand Down