protected override void OnPreGameUnloaded() { _paused = true; foreach (var gs in _gameStates) { if (gs == null) { continue; } foreach (var es in gs.EntityStates) { _entStatePool.Release(es); } gs.EntityStates.Clear(); } }