Why are they using transform in this case and not GameObject?
I assume they can use Transform because GameObject is inherited from transform, but why do they do that?
public List<Transform> GetWayPoints()
{
var waveWayPoints = new List<Transform>();
foreach (Transform child in pathPrefab.transform)
{
waveWayPoints.Add(child);
}
return waveWayPoints;
}