コード例 #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);
        }