private void AddControlScheme(object position) { var popup = new AddControlSchemePopup(m_ActionAssetManager, this, m_Apply); popup.SetUniqueName(); // Since it's a callback, we need to manually handle ExitGUIException try { PopupWindow.Show((Rect)position, popup); } catch (ExitGUIException) {} }
private void DuplicateControlScheme(object position) { if (m_SelectedControlSchemeIndex == -1) { return; } var popup = new AddControlSchemePopup(m_ActionAssetManager, this, m_Apply); popup.DuplicateParametersFrom(selectedControlSchemeName); // Since it's a callback, we need to manually handle ExitGUIException try { PopupWindow.Show((Rect)position, popup); } catch (ExitGUIException) {} }