public static void DeactivateLogWindow() { if (_currentLog != null && _currentLog.logWindow.activeSelf) { _currentLog.LogButton(); } }