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 UpdateBind() //Updates The InputManager.Binds And Saves Changes { inputManager.UpdateBind(currentBindKeyIndex, bindKey); InputManager.SaveBinds(); }