mirror of
https://github.com/ppy/osu.git
synced 2026-05-25 01:39:55 +08:00
Elaborate with example of GameplayClockContainer managing its own Stop state
This commit is contained in:
@@ -88,6 +88,7 @@ namespace osu.Game.Screens.Play
|
||||
isPaused.Value = false;
|
||||
|
||||
// the clock may be stopped via internal means (ie. not via `IsPaused`).
|
||||
// see Reset() calling `GameplayClock.Stop()` as one example.
|
||||
if (!GameplayClock.IsRunning)
|
||||
{
|
||||
// Seeking the decoupled clock to its current time ensures that its source clock will be seeked to the same time
|
||||
|
||||
Reference in New Issue
Block a user