コード例 #1
0
	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);
		}
	}
コード例 #2
0
ファイル: AstarData.cs プロジェクト: arcoelho01/astrochimps
 public void UpdateShortcuts()
 {
     navmesh = (NavMeshGraph)FindGraphOfType (typeof(NavMeshGraph));
     gridGraph = (GridGraph)FindGraphOfType (typeof(GridGraph));
     listGraph = (ListGraph)FindGraphOfType (typeof(ListGraph));
 }