1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 03:09:54 +08:00

Cache self rather than GameplayClock

This commit is contained in:
Dean Herbert
2022-08-15 18:14:57 +09:00
Unverified
parent c5f8529d20
commit cc982d374c
@@ -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);