When completed, our game will spawn a new zombie every five seconds at one of three spawn points. Each undead creature will then shamble toward the player to attack and consume a fresh brain. For the next step, we'll create and position three spawn points within our scene:
- Create three empty GameObjects, naming each one ZombieSpawnPoint and position them as indicated in Table 5.2:
Position |
|||
Name |
X |
Y |
Z |
ZombieSpawnPoint |
-23 |
0 |
17 |
ZombieSpawnPoint |
0 |
0 |
23 |
ZombieSpawnPoint |
23 |
0 |
17 |
- Select one of the ZombieSpawnPoint's. In the Inspector, click on the Tag dropdown and choose Add Tag..., this will open the Tags & Layers panel. The Tag list will be ...