/// <summary> /// Clears any previously made path, restoring it to default values /// </summary> 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; }