Exemplo n.º 1
0
    internal void Select(UISelectable selectable)
    {
        if (selected == selectable)
        {
            return;
        }

        if (selected != null)
        {
            selected.OnDeselect(null);
        }

        selected = selectable;

        if (selected != null)
        {
            selected.OnSelect(null);
        }
    }
Exemplo n.º 2
0
 public void OnSelect()
 {
     selectable.OnSelect();
 }