I am really confused about this part. The GetWaypoints() function returns a list of Transform variables which are the waypoints defined by us. In that case shouldn’t index in Instantiate(waveConfig.GetWaypoints()[index] )represent the wayPoint we want to access?
For example: In the video, shouldn’t waveConfig.GetWaypoints()[0] imply Waypoint(0)? How is it that index represents enemy count in this scenario?
Update: Nevermind, I thought we were using enemyCount instead of 0.