public void LinkNext(NavMeshClientWayPoint next) { this.Next = next; next.Prev = this; // (Tail as NavMeshClientWayPoint).Next = next; // next.Prev = (Tail as NavMeshClientWayPoint); }
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); }