public static void InitPathFinding(PathGrid pathGrid) { //初始化路径查找 pathFinding = new PathFinding(pathGrid.GetGrid()); }
// 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); }