예제 #1
0
        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();
            }
        }
예제 #2
0
 public void Unlock()
 {
     _editing = false;
     OnOptionEndEdit?.Invoke();
     OnOptionUnlocked?.Invoke();
 }