public void AddSelectable(Selectable selectable) { var selectionListener = selectable.GetComponent <Selectable>().selectionListener; this.selectionListeners.Add(selectionListener); }
public SelectionListener(GameObject gameObject) { this.selectable = gameObject.GetComponent <Selectable>(); }