Unity Survival Shooter Game Lesson 1 Player Character - jasonweibel/HyperStream-Unity GitHub Wiki
Hyperstream : Unity Survival Shooter Game - Lesson 1 - Player Character
-
Open Player Movement script in Visual Studio
-
Locate Move method and uncomment it.

-
Locate Turning Method and uncomment it.

-
In FixedUpdate method uncomment call of Move and Turning methods.

-
Open PlayerShooting script in Visual Studio
-
Uncomment Shoot method

-
In Update method uncomment Shoot method call on line 47.

-
Add PlayerMovement script component to Player game object
-
Set speed to 6

-
Add Player Shooting script to the GunBarrelEnd game object

-
Set Player Shooting script properties:
-
Set Damage Per Shot to 20
-
Time Between Bullets to 0.12
-
Range to 100
-
Face Light to FaceLight light

Attachments:
image2017-8-21_16-21-25.png (image/png)
image2017-8-21_16-21-40.png (image/png)
image2017-8-21_16-21-55.png (image/png)
image2017-8-21_16-22-15.png (image/png)
image2017-8-21_16-22-32.png (image/png)
image2017-8-21_16-22-51.png (image/png)
image2017-8-21_16-23-6.png (image/png)
image2017-8-21_16-23-24.png (image/png)