private void VariableLabelClickHandler(SetBlockUI setBlock, ActiveLabel sender)
 {
     if (_editPanel.CurrentTool == EditTools.Cursor)
     {
         _cursorTool.CursorOnVariableLabel(setBlock, sender);
     }
 }
Esempio n. 2
0
        public void CursorOnVariableLabel(SetBlockUI setBlock, ActiveLabel sender)
        {
            switch (_setLabelSteps)
            {
            case SetLabelSteps.SetTarget:
            {
                _setLabelTarget       = sender;
                _isSetedLabelVariable = true;
                _setVariableBlock     = setBlock;
                _activeLabelType      = ActiveLabelType.Variable;

                _setLabelSteps = SetLabelSteps.SetValue;
                _contextMenu.ClearContextMenu();
                SetVariableMenuItems();
                _contextMenu.gameObject.SetActive(true);
            }
            break;
            }
        }
Esempio n. 3
0
 private void VariableLabelClickHandler(SetBlockUI setBlock, ActiveLabel label)
 {
     OnVariableLabelClick?.Invoke(setBlock, label);
 }