In Chapter 5, page 126, section “Spawning the aliens”, it says the first line to add in Update() is:
alienScript.target = player.transform;
I think this should instead be:
currentSpawnTime += Time.deltaTime;
In Chapter 5, page 126, section “Spawning the aliens”, it says the first line to add in Update() is:
alienScript.target = 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.
Thanks!
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!