private void AddHotkey(EHotkeyType p_hotkeyType) { GameObject gameObject = NGUITools.AddChild(m_keysRoot.gameObject, m_keyConfigPrefab); KeyConfigView component = gameObject.GetComponent <KeyConfigView>(); component.Init(p_hotkeyType, this); m_keyConfigViews[p_hotkeyType] = component; m_entriesCount++; }
public void StartKeyInput(KeyConfigView p_keyView) { m_currentKeyView = p_keyView; m_buttonKeyDelete.isEnabled = true; m_buttonKeyDeleteText.color = Color.white; }