Unity Survival Shooter Game Lesson 1 Player Character - jasonweibel/HyperStream-Unity GitHub Wiki

Hyperstream : Unity Survival Shooter Game - Lesson 1 - Player Character

  1. Open Player Movement script in Visual Studio

  2. Locate Move method and uncomment it.

  3. Locate Turning Method and uncomment it.

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

  5. Open PlayerShooting script in Visual Studio

  6. Uncomment Shoot method

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

  8. Add  PlayerMovement script component to Player game object

  9. Set speed to 6

  10. Add Player Shooting script to the GunBarrelEnd game object

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