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