Beispiel #1
0
    public void BUTTON_ACTION_Select()
    {
        // toggle select
        _selected = !_selected;

        if (_selected)
        {
            _propetyInspector.StartEditingState(this);
        }
        else
        {
            _propetyInspector.BUTTON_ACTION_CancelEditing();
        }
    }
Beispiel #2
0
 public void OnPointerDown(PointerEventData eventData)
 {
     print("background clicked ");
     // if click background, then cancel editing of anything selected
     _propetyInspector.BUTTON_ACTION_CancelEditing();
 }