public override void Shutdown() { escapeMenu.Dispose(); _gameChat.TextSubmitted -= console.ParseChatMessage; console.AddString -= _gameChat.AddLine; playerManager.LocalPlayer.DetachEntity(); _entityManager.Shutdown(); mapManager.Shutdown(); userInterfaceManager.StateRoot.DisposeAllChildren(); var maps = mapManager.GetAllMaps().ToArray(); foreach (var map in maps) { if (map.Index != MapId.Nullspace) { mapManager.DeleteMap(map.Index); } } inputManager.SetInputCommand(EngineKeyFunctions.EscapeMenu, null); inputManager.SetInputCommand(EngineKeyFunctions.FocusChat, null); inputManager.KeyBindStateChanged -= OnKeyBindStateChanged; }
public override void Shutdown() { escapeMenu.Dispose(); _gameChat.TextSubmitted -= console.ParseChatMessage; console.AddString -= _gameChat.AddLine; playerManager.LocalPlayer.DetachEntity(); _entityManager.Shutdown(); userInterfaceManager.StateRoot.DisposeAllChildren(); var maps = mapManager.GetAllMaps().ToArray(); foreach (var map in maps) { if (map.Index != MapId.Nullspace) { mapManager.DeleteMap(map.Index); } } }