Working through video #97 and I got a NullReferenceException on the waypoints=waveConfig.GetWaypoints(); line in the EnemyPathing.cs start method:
void Start () {
waypoints = waveConfig.GetWaypoints();
transform.position = waypoints[waypointIndex].transform.position;
}
To troubleshoot, I added a
Debug.Log(waveConfig);
immediately before the erroring line. Then it started working and continued to work after I took out the Debug.Log(waveConfig) line.
I haven’t gotten it to repeat the error again, but does anyone have any thoughts on why this may have been happening?