GetStartingWaypoint()

Since we created GetStartingWaypoint(), I was expecting it in Pathfinder.cs script:

    int waypointIndex = 0; 

    void Start()
    {
        waypoints = waveConfig.GetWaypoints();
     // transform.position = waypoints[waypointIndex].position
        transform.position = waveConfig.GetStartingWaypoint().position;
    }

I’m just guessing we didn’t in order to avoid a small performance hit. But I feel it should be explained.

Privacy & Terms