Ejemplo n.º 1
0
 public void ClearPath()
 {
     if (currentPathExists)
     {
         HexCell current = currentPathTo;
         while (current != currentPathFrom)
         {
             current.SetLabel(null);
             current.DisableHighlight();
             current = current.PathFrom;
         }
         current.DisableHighlight();
         currentPathExists = false;
     }
     else if (currentPathFrom)
     {
         currentPathFrom.DisableHighlight();
         currentPathTo.DisableHighlight();
     }
     currentPathFrom = currentPathTo = null;
 }