Unity Survival Shooter Game Lesson 4 Player Health - jasonweibel/HyperStream-Unity GitHub Wiki

Hyperstream : Unity Survival Shooter Game - Lesson 4 - Player Health

  1. Open PlayerHealth script in Visual Studio

  2. Uncomment TakeDamage method

  3. Uncomment Death method

  4. Open EnemyAttack script in Visual Studio and uncomment player health take damage method call, line 80.

  5. Open EnemyManager script and uncomment player health greater than 0 if condition.

  6. Open EnemyMovement script and uncomment update method if condition.

  7. Open Player Prefab and set add Player Health script component.

  8. Update EnemyManager Player Health

Attachments:

image2017-8-21_16-31-44.png (image/png)
image2017-8-21_16-32-3.png (image/png)
image2017-8-21_16-32-23.png (image/png)
image2017-8-21_16-32-45.png (image/png)
image2017-8-21_16-33-6.png (image/png)
image2017-8-21_16-33-29.png (image/png)
image2017-8-21_16-33-51.png (image/png)
image2017-8-21_16-34-15.png (image/png)