public void DrawChildren (ListGraph graph, Transform tr) { foreach (Transform child in tr) { Gizmos.DrawCube (child.position,Vector3.one*HandleUtility.GetHandleSize(child.position)*0.1F); //Handles.CubeCap (-1,graph.nodes[i].position,Quaternion.identity,HandleUtility.GetHandleSize(graph.nodes[i].position)*0.1F); //Gizmos.DrawCube (nodes[i].position,Vector3.one); if (graph.recursive) DrawChildren (graph, child); } }
public void UpdateShortcuts() { navmesh = (NavMeshGraph)FindGraphOfType (typeof(NavMeshGraph)); gridGraph = (GridGraph)FindGraphOfType (typeof(GridGraph)); listGraph = (ListGraph)FindGraphOfType (typeof(ListGraph)); }