mirror of
https://github.com/ppy/osu.git
synced 2026-05-25 01:39:55 +08:00
Cache self rather than GameplayClock
This commit is contained in:
@@ -86,7 +86,9 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
var dependencies = new DependencyContainer(base.CreateChildDependencies(parent));
|
||||
|
||||
dependencies.CacheAs<IGameplayClock>(GameplayClock = CreateGameplayClock(AdjustableSource));
|
||||
GameplayClock = CreateGameplayClock(AdjustableSource);
|
||||
|
||||
dependencies.CacheAs<IGameplayClock>(this);
|
||||
|
||||
GameplayClock.StartTime = StartTime;
|
||||
GameplayClock.IsPaused.BindTo(isPaused);
|
||||
|
||||
Reference in New Issue
Block a user