private void DestroyDebugWindow() { GameLogger.UnRegisterLogCallback(); if (!thisDestroyed) { ClearLogs(); debugWindow.Close(); } }