private void closeKeybindingsWindow() { if (m_KeybindingsWindow != null) { if (!m_KeybindingsWindow.IsFadingOut) { config.keymapperWindowPos = m_KeybindingsWindow.RectTransform.position; m_KeybindingsWindow.fadeClose(); resetWindow2InputLock(); } } else if (m_KeybindingsWindowObject != null) { Destroy(m_KeybindingsWindowObject); resetWindow2InputLock(); } }
private void closeMainWindow() { if (m_MainWindow != null) { if (!m_MainWindow.IsFadingOut) { config.mainWindowPos = m_MainWindow.RectTransform.position; m_MainWindow.fadeClose(); config.removeListener(scaleMainWindow); resetWindow1InputLock(); } } else if (m_MainWindowObject != null) { Destroy(m_MainWindowObject); mainWindow.clearMainWindow(); config.removeListener(scaleMainWindow); resetWindow1InputLock(); } }