Beispiel #1
0
 protected GraphNode(AstarPath astar)
 {
     if (object.ReferenceEquals(astar, null))
     {
         throw new Exception("No active AstarPath object to bind to");
     }
     this.nodeIndex = astar.GetNewNodeIndex();
     astar.InitializeNode(this);
 }
Beispiel #2
0
 // Token: 0x06002349 RID: 9033 RVA: 0x001945AB File Offset: 0x001927AB
 protected GraphNode(AstarPath astar)
 {
     if (astar != null)
     {
         this.nodeIndex = astar.GetNewNodeIndex();
         astar.InitializeNode(this);
         return;
     }
     throw new Exception("No active AstarPath object to bind to");
 }
Beispiel #3
0
        // End of fallback

        /** Constructor for a graph node. */
        public GraphNode(AstarPath astar)
        {
            if (!System.Object.ReferenceEquals(astar, null))
            {
                this.nodeIndex = astar.GetNewNodeIndex();
                astar.InitializeNode(this);
            }
            else
            {
                throw new System.Exception("No active AstarPath object to bind to");
            }
        }
        // End of fallback

        /** Constructor for a graph node. */
        public GraphNode(AstarPath astar)
        {
            //this.nodeIndex = NextNodeIndex++;
            if (astar != null)
            {
                this.nodeIndex = astar.GetNewNodeIndex();
                astar.InitializeNode(this);
            }
            else
            {
                throw new System.Exception("No active AstarPath object to bind to");
            }
        }
Beispiel #5
0
 public TriangleMeshNode(AstarPath astar)
 {
     astar.InitializeNode(this);
 }
Beispiel #6
0
 public GridNode(AstarPath astar)
 {
     astar.InitializeNode(this);
 }
Beispiel #7
0
 public NodeLink3Node(AstarPath astar)
 {
     astar.InitializeNode(this);
 }
Beispiel #8
0
 public PointNode(AstarPath astar)
 {
     astar.InitializeNode(this);
 }