private void HandleKeyBoardInput() { if (!_editing && Input.GetKeyDown(KeyCode.RightArrow)) { _editing = true; OnOptionBeginEdit?.Invoke(); } else if (_editing && Input.GetKeyDown(KeyCode.LeftArrow)) { _editing = false; OnOptionEndEdit?.Invoke(); } else { return; } if (_editing) { OnOptionLocked?.Invoke(); } else { OnOptionUnlocked?.Invoke(); } }
public void Unlock() { _editing = false; OnOptionEndEdit?.Invoke(); OnOptionUnlocked?.Invoke(); }