mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 08:27:49 +08:00
Cache self rather than GameplayClock
This commit is contained in:
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);
|
||||
|
Loading…
Reference in New Issue
Block a user