Exemplo n.º 1
0
        public void OnHoverExit(Transform target)
        {
            Selectable selectable = target.GetComponent <Selectable>();

            if (selectable)
            {
                potentialSelections.Remove(selectable);
                selectable.SetHighlightStatus(false);
            }
        }
Exemplo n.º 2
0
        public void OnHoverEnter(Transform target)
        {
            Selectable selectable = target.GetComponent <Selectable>();

            if (selectable && selectable.IsSelectable && !potentialSelections.Contains(selectable))
            {
                potentialSelections.Add(selectable);
                selectable.SetHighlightStatus(true);
            }
        }