Ejemplo n.º 1
0
        private static void DrawNavigationForSelectable(SelectableUI sel)
        {
            if (sel == null)
            {
                return;
            }

            Transform transform = sel.transform;
            bool      active    = Selection.transforms.Any(e => e == transform);

            Handles.color = new Color(1.0f, 0.9f, 0.1f, active ? 1.0f : 0.4f);
            DrawNavigationArrow(-Vector2.right, sel, sel.FindSelectableOnLeft());
            DrawNavigationArrow(Vector2.right, sel, sel.FindSelectableOnRight());
            DrawNavigationArrow(Vector2.up, sel, sel.FindSelectableOnUp());
            DrawNavigationArrow(-Vector2.up, sel, sel.FindSelectableOnDown());
        }