Why does index in waveConfig.GetWayPoints()[index] represent number of enemies?

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.

Nevermind, I thought we were using enemyCount instead of 0.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms