Unity Survival Shooter Game Lesson 4 Player Health - jasonweibel/HyperStream-Unity GitHub Wiki
Hyperstream : Unity Survival Shooter Game - Lesson 4 - Player Health
-
Open PlayerHealth script in Visual Studio
-
Uncomment TakeDamage method

-
Uncomment Death method

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

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

-
Open EnemyMovement script and uncomment update method if condition.

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


-
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)