Error in Chapter 5 on page 126

In Chapter 5, page 126, section “Spawning the aliens”, it says the first line to add in Update() is: = player.transform;

I think this should instead be:
currentSpawnTime += Time.deltaTime;

I just came across this error too… Clearly the original line isn’t right, and what you’ve suggested makes a lot more sense.


If you look at the final GameManager.cs script the suggestion @geoffa makes is correct.

Just an FYI … this is now fixed in the final version. Thanks to everyone for the heads up!