예제 #1
0
        public void OnHoverExit(Transform target)
        {
            Selectable selectable = target.GetComponent <Selectable>();

            if (selectable)
            {
                potentialSelections.Remove(selectable);
                selectable.SetHighlightStatus(false);
            }
        }
예제 #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);
            }
        }