private void VariableLabelClickHandler(SetBlockUI setBlock, ActiveLabel sender)
 {
     if (_editPanel.CurrentTool == EditTools.Cursor)
     {
         _cursorTool.CursorOnVariableLabel(setBlock, sender);
     }
 }
Ejemplo 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;
            }
        }
Ejemplo n.º 3
0
 private void VariableLabelClickHandler(SetBlockUI setBlock, ActiveLabel label)
 {
     OnVariableLabelClick?.Invoke(setBlock, label);
 }