Ejemplo n.º 1
0
        public void Dispose()
        {
            this.Disposed = true;

            _timer.CurrentState.OnSplit -= state_OnSplit;
            _timer.CurrentState.OnReset -= state_OnReset;
            _timer.CurrentState.OnStart -= state_OnStart;

            _timer.CurrentState.IsGameTimePaused = false; // hack
            _timer.CurrentState.LoadingTimes     = TimeSpan.Zero;

            _gameMemory?.Stop();
        }
Ejemplo n.º 2
0
        public void Dispose()
        {
            this.Disposed = true;

            _state.OnSplit -= state_OnSplit;
            _state.OnReset -= state_OnReset;
            _state.OnStart -= state_OnStart;

            _state.IsGameTimePaused = false; // hack
            _state.LoadingTimes     = TimeSpan.Zero;

            if (_gameMemory != null)
            {
                _gameMemory.Stop();
            }
        }