public void UpdateSequence(Neighbour neighbour) { // Convert our sequence of ints to the 2D line representations to be drawn on the screen. pathLines.Clear(); pathLines.AddRange(TownHelper.GetTownSequencePath(neighbour.Sequence)); // Convert the fitness into a format that is easily digestable and update the value on screen // Format: 1234.56 totalDistanceString.StringText = neighbour.GetFitness().ToString("#.##"); }
public void UpdateSequence(Neighbour neighbour) { pathLines = TownHelper.GetTownSequencePath(neighbour.Sequence); totalDistanceString.StringText = neighbour.GetFitness().ToString("#.##"); }