public static NavMeshClientWayPoint CreateFromVoxel(NavMeshWayPoint p) { if (p == null) { return(null); } var start = new NavMeshClientWayPoint(p); var wp = start; while (p.Next != null) { p = p.Next; var next = new NavMeshClientWayPoint(p); wp.Next = next; next.Prev = wp; wp = next; } return(start); }
public NavMeshClientWayPoint(NavMeshWayPoint p) { this.p = p; }