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