Ejemplo n.º 1
0
 public static void InitPathFinding(PathGrid pathGrid)
 {
     //初始化路径查找
     pathFinding = new PathFinding(pathGrid.GetGrid());
 }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     pathGrid    = new PathGrid(pos1.position, pos2.position);
     pathFinding = new PathFinding(pathGrid.GetGrid());
     //pathFinding=new PathFinding(5,6,Vector3.zero);
 }