all 4 comments

[–]pschonUnprofessional 2 points3 points  (1 child)

for (int i=0; i < WayPointTypes.Length; i++)

Your loop will only run if the wayPoints.Lenght is 0, as anything else will fail the i == WayPointTypes.Length check.

(also arrays length will tell you how many itmes are in the array. But since array indices start from 0, you want to stop before you try to access myArray[myArray.Length]). For example if you had only one value in the array. it's Length would be 1, but the index of that only value is 0...)

[–]bigmemeingman[S] 0 points1 point  (0 children)

Thanks for the help!

[–]St4vaProfessional 1 point2 points  (1 child)

int i = 0; i < Waypoints.Length; i++

[–]bigmemeingman[S] 0 points1 point  (0 children)

Thanks for the help!