GA/Assets/Scripts/Chromosome.cs
/// <summary>
/// Draws connection lines between cities in the DNA.
/// </summary>
Draws connection lines between cities in the DNA.
Draws connection lines between cities in the DNA .
public void Draw() {
        for (int i = 0; i < dna.Count; i++) {
            if (i == dna.Count - 1) {
                dna[i].DrawLine(dna[0]);
            }
            else dna[i].DrawLine(dna[i + 1]);
        }
    }
public void Draw ( ) { for ( int i = 0 ; i < dna . Count ; i ++ ) { if ( i == dna . Count - 1 ) { dna [ i ] . DrawLine ( dna [ 0 ] ) ; } else dna [ i ] . DrawLine ( dna [ i + 1 ] ) ; } }
Draws connection lines between cities in the DNA.
Draws connection lines between cities in the DNA .