public void EndLoad()
        {
            DoAfterUpdate(() =>
            {
                if (!IsRunning || !IsGameTimePaused)
                {
                    return;
                }

                _stopwatch.Resume();
            });
        }
Пример #2
0
        public void EndLoad(int millisecondsOffset = 0, int quarterBeatsOffset = 0)
        {
            var beatTimeOffset = new BeatTime(_beatTimer.Bpm, quarterBeatsOffset, millisecondsOffset);

            DoAfterUpdate(() =>
            {
                if (!IsRunning || !IsGameTimePaused)
                {
                    return;
                }

                _speedrunStopwatch.Resume((int)beatTimeOffset.Milliseconds);
                _beatTimer.ResumeTimer(millisecondsOffset, quarterBeatsOffset);
            });
        }