public void OnHoverExit(Transform target) { Selectable selectable = target.GetComponent <Selectable>(); if (selectable) { potentialSelections.Remove(selectable); selectable.SetHighlightStatus(false); } }
public void OnHoverEnter(Transform target) { Selectable selectable = target.GetComponent <Selectable>(); if (selectable && selectable.IsSelectable && !potentialSelections.Contains(selectable)) { potentialSelections.Add(selectable); selectable.SetHighlightStatus(true); } }