Skip to content

Commit ebd714d

Browse files
committed
Method overloading
1 parent 53f23c1 commit ebd714d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

TimersCore/Timer.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,18 @@ public IStop Start(float time, UnityAction endCallback, UnityAction<float> progr
7575
return StartInternal(time, endCallback, progressCallback, false);
7676
}
7777

78+
/// <summary>
79+
/// Starts the timer with scaled time.
80+
/// </summary>
81+
/// <param name="time">Duration of the timer in seconds.</param>
82+
/// <param name="progressCallback">Method to be invoked with progress updates (optional).</param>
83+
/// <param name="endCallback">Method to be invoked at the end of the timer (optional).</param>
84+
/// <returns>Returns the Timer instance for chaining.</returns>
85+
public IStop Start(float time, UnityAction<float> progressCallback, UnityAction endCallback)
86+
{
87+
return StartInternal(time, endCallback, progressCallback, false);
88+
}
89+
7890
/// <summary>
7991
/// Starts the timer with unscaled time.
8092
/// </summary>

0 commit comments

Comments
 (0)