In this tutorial series we will be creating a room scale zombie shooter. To make it easier for you we have a starter scene with some basic assets imported.
Now click on the Bullet prefab that is already in our scene. Go to Add Component->Script>New Script. Call it bulletManager and add these lines of code to it.
Inside the editor look for a tab called Asset Store(shown below). Once there type SteamVR Plugin into the search bar.
Component->Script>New Script. Call it bulletManager and add these lines of code to it.
With this we are checking to see if the bullet hits any colliders that we have set up. If it hits a zombie, then we want to call a function in our zombieController script called decrease which keeps track of that zombies health.
Now when we press play if we shoot a zombie 3 times he will die.