Want to watch this Lesson?

Check out the about tab below and start learning on CG Cookie today.

Get Started
crew
  • Software:Unity 5.0  ·
  • Difficulty:Intermediate

In this lesson we'll go over using a bullet shell prefab that instantiates and flies out when we fire our weapon. This will work hand in hand with the ammo logic to ensure we're only ejecting bullet shells when we're firing and not when we're reloading or out of ammo. The bullet shells will also utilize a custom script to ensure it rotates randomly when spawned and plays an audio clip on impact with the ground.