Skip to content

Commit 225259e

Browse files
committed
Minor changes.
1 parent e47922d commit 225259e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Runtime/Tween.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ public void Start(float? duration = null)
293293
Stop();
294294
}
295295

296+
// Set a new duration if not-null parameter provided
296297
if (duration != null)
297298
{
298299
if (duration.Value < 0f)
@@ -354,7 +355,7 @@ public object GetTweenedValueAt(float progress)
354355
[Pure]
355356
public override string ToString()
356357
{
357-
return $"{StartValue} -> {EndValue} over {TotalDuration} seconds{(IsActive ? $" ({GetProgress()*100:0.0}%: {CurrentValue ?? "-"}){(IsPaused ? " [Paused]" : "")}" : "")}";
358+
return $"{StartValue} to {EndValue} over {TotalDuration} seconds{(IsActive ? $" ({GetProgress()*100:0.0}%: {CurrentValue ?? "-"}){(IsPaused ? " [Paused]" : "")}" : "")}";
358359
}
359360

360361
/// <summary>

0 commit comments

Comments
 (0)