Unity Tanks Game Lesson 3 Add Tank Health - jasonweibel/HyperStream-Unity GitHub Wiki
Hyperstream : Unity Tanks Game - Lesson 3 - Add Tank Health
Update TankHealth Script
-
Open TankHealth.cs script in Visual Studio.
-
Uncomment public and private properties.

-
Uncomment Awake Method

-
Uncomment SetHealthUI method

-
Uncomment OnDeath method

-
Uncomment OnEnable method

-
Uncomment Take Damage method

Update ShellExplosion.cs Script
-
Open ShellExplosion.cs file in Visual Studio
-
Uncomment line 52.

Add Tank Health Script to Tank Prefab
-
Select Tanks Prefab

-
Add a Scripts --> Complete --> Tank Health
-
Set Tank Health Script properties

Attachments:
image2017-8-12_8-51-36.png (image/png)
image2017-8-12_8-52-4.png (image/png)
image2017-8-12_8-52-23.png (image/png)
image2017-8-12_8-52-44.png (image/png)
image2017-8-12_8-53-5.png (image/png)
image2017-8-12_8-53-27.png (image/png)
image2017-8-12_8-54-28.png (image/png)
image2017-8-12_8-54-58.png (image/png)
image2017-8-12_8-55-23.png (image/png)