Exemple #1
0
 void ShowPath()
 {
     if (currentPathExists)
     {
         HexCell current = currentPathEnd;
         while (current != currentPathStart)
         {
             int turn = current.Distance;
             current.EnableHighlight();
             current = current.PathFrom;
         }
     }
     currentPathStart.EnableBeginPathHighlight();
     currentPathEnd.EnableEndPathHighlight();
 }