1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 10:33:07 +08:00

Elaborate with example of GameplayClockContainer managing its own Stop state

This commit is contained in:
Dean Herbert 2022-08-22 14:14:44 +09:00
parent af2e82d7d5
commit e6b669db8e

View File

@ -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