Unity Space Shooter Lesson 3 Spawning Waves - jasonweibel/HyperStream-Unity GitHub Wiki

Hyperstream : Unity Space Shooter - Lesson 3 - Spawning Waves

Reference

Unity Tutorial - https://unity3d.com/learn/tutorials/projects/space-shooter/spawning-waves?playlist=17147

Spawning Waves

  1. Open GameController script in Visual Studio

  2. Uncomment public hazards variable

  3. Uncomment SpawnWaves method

  4. Uncomment StartCoroutine statement in Start method.

  5. Switch to Unity project and locate Game Controller in Hierarchy window.

  6. On Game Controller script change Hazards Size to 4

  7. Change Element 0 to Asteroid 01

  8. Change Element 1 to Asteroid 02

  9. Change Element 2 to Asteroid 3

  10. Change Element 3 to Enemy Ship

  11. Play Game!

Have students change the game:

  1. Modify Game Controller values
    1. Change Spawn Wait to 0.1
    2. Change Hazard Count to 100
    3. Change Hazard Count to 10000
  2. Modify Player Controller Script values
    1. Change Speed to 1
    2. Change Speed to 100
    3. Change Fire Rate to 1
    4. Change Fire Rate to 0

Finished Game Controller Script Inspector Window

Attachments:

image2017-7-12_12-32-53.png (image/png)
image2017-7-12_12-33-16.png (image/png)
image2017-7-12_12-33-39.png (image/png)
image2017-7-12_12-35-16.png (image/png)
image2017-7-12_12-36-33.png (image/png)