Exemplo n.º 1
0
 // Token: 0x0600271E RID: 10014 RVA: 0x001AF880 File Offset: 0x001ADA80
 private void CompleteWith(GraphNode node)
 {
     if (this.endNode != node)
     {
         GridNode gridNode = node as GridNode;
         if (gridNode == null)
         {
             throw new Exception("Some path is not cleaning up the flag1 field. This is a bug.");
         }
         this.endPoint = gridNode.ClosestPointOnNode(this.originalEndPoint);
         this.endNode  = node;
     }
     base.CompleteState = PathCompleteState.Complete;
 }