RouteNodeUI
Overview
Clickable marker for a graph node in the builder. Validates availability on enable and raises a selection event when clicked. fileciteturn22file4
Enable Logic
- Invalid when:
- Node’s
Region.Presence == true - Destination is the current region
NodeMap.CreateRoute(currentRegion.Node, node) == null
- Node’s
- Otherwise valid → enables button and marker. fileciteturn22file4
API
Init(Node) to assign; OnNodeSelected() raises NodeSelected with the node GameObject. fileciteturn22file4