Shooting



The 2 guns contained a shooting script that controls the fire rate and damage. The screenshot above shows the weapon shoot function. It requires the E key to shoot and the shoot animation will also be played since I called the weapon manager script. Revolver has a single fire type whereas the assault rifle has multiple fire type. 


I will be using raycast hit to shoot zombies and damage will be inflicted on them. The raycast will be followed with the main camera to ensure that player is shooting enemies without any problems. 

Get Last Survivor