Update clock from base class

This commit is contained in:
smoogipoo
2021-04-14 21:15:14 +09:00
parent 18c69cdaf7
commit f56125bd68
2 changed files with 14 additions and 10 deletions

View File

@ -77,8 +77,18 @@ namespace osu.Game.Screens.Play
Start();
}
protected override void Update()
{
if (!IsPaused.Value)
ClockToProcess.ProcessFrame();
base.Update();
}
protected abstract void OnIsPausedChanged(ValueChangedEvent<bool> isPaused);
protected abstract GameplayClock CreateGameplayClock(IClock source);
protected virtual IFrameBasedClock ClockToProcess => AdjustableClock;
protected abstract GameplayClock CreateGameplayClock(IFrameBasedClock source);
}
}