void Switch() //Method To Switch Between The Conflicting Bindings Keys { KeyCode temp = InputManager.GetKeyCode(currentBindKeyIndex); inputManager.UpdateBind(currentBindKeyIndex, InputManager.GetKeyCode(conflict)); inputManager.UpdateBind(conflict, temp); InputManager.SaveBinds(); Cancel(); }
void StartBinding(int catIndex, int bindIndex, int keyIndex) //Starts Binding Procedure { binding = true; optionsBackB.interactable = false; currentBindKeyIndex = new BindKeyIndex(catIndex, bindIndex, keyIndex); string[] names = inputManager.GetBindNameAndKey(currentBindKeyIndex); popupText.text = "Press a Key To Replace [" + names[1] + "] For The Bind [" + names[0] + ']'; bindKey = InputManager.GetKeyCode(currentBindKeyIndex); bindPopup.SetActive(true); }