示例#1
0
        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);
        }
示例#2
0
 public NavMeshClientWayPoint(NavMeshWayPoint p)
 {
     this.p = p;
 }