public void AddGraph(AStarData.GraphType graphType) { switch (graphType) { case AStarData.GraphType.GridGraph: { GridNavGraph gridGraph = new GridNavGraph(AStarData.graphIndex++); gridGraph.graphType = (int)graphType; AStarData.AddGrapData(gridGraph); } break; default: break; } }
private void CreateGraphEditor(AStarData.GraphType type, GraphBase graphObj) { switch (type) { case AStarData.GraphType.GridGraph: { GridGraphEditor gridGraph = new GridGraphEditor(); gridGraph.targetGraph = graphObj; graphEditors.Add(graphObj.graphIndex, gridGraph); } break; default: break; } }
public void AddGraph(int type) { AStarData.GraphType graphType = (AStarData.GraphType)type; AddGraph(graphType); }
public void AddGraph(AStarData.GraphType type) { aStarPathScript.AddGraph(type); }