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