[MUSIC] In this video, we'll create a few particle systems to create visual polish in our game, as well as add a few sound effects. Our objectives include using Unity's particle system to create a simple explosion of sorts for the various types of targets. We'll also add sound effects to go along with each particle system explosion. Okay, we're gonna go ahead and create a particle system. Go under Hierarchy > Create > Particle System. And I'll go ahead and rename this right away as my Target-Positive-Explosion. And we've got the default particle out there. Let me go ahead and reset the transform to be the center of the world. And let's go through and modify some of the properties of the particle system. I've played with this for a while and I've preset this up, so I'm gonna do this relatively quickly. So the duration, rather than 5 seconds, I'm gonna set this to 0.4, so it's not gonna last very long. And I also don't want it to loop cuz it's gonna be basically a single explosion and then end. So the lifetime of each particle I'm gonna set to 0.4 seconds, the duration of the overall particle system. The Start Size, I'm gonna vary between two values. So I'll say Random Between Two Constants. And I'm gonna make it 0.2 meters to 0.5 meters, because the target is gonna be blowing into small pieces, so I don't want them to be the full size of the target. I'll give a little bit of Gravity, so each particle will fall with gravity. So I'll set this to 0.5. And I'll leave the rest of the settings unchanged. Under Admissions, I don't want this to continually generate particles. So I'm gonna set the Rate as 0 but then I'm gonna add a Burst right at time 0. I'll burst 10 particles. For the Shape, the default Shape is the Cone. When I shoot the target I want the particle to go in all directions. So a good way to do that is to pick a Sphere, so that the targets will render in all directions. And then I'm gonna go down to Size Over Lifetime and turn this option On. And I want them to decrease in size over the lifetime, so let me go ahead and click on that. Then I'm gonna pick this Curve so it starts at 1 and goes down to 0. And the final thing, I'm gonna go down to the Renderer. And the default is the Billboard Rendering 2D Billboard. I'm gonna change this to the Mess Renderer because I'm gonna be rendering actually cubes coming out of this particle systems. And I need to set the Mesh. I think it just by chance picked the Cube, which is fine. So, if it didn't do that, I would bring up the target and pick my Cube. And then I need to set the Material, so once again we've got a bunch of materials already created. Let me just use the target. And I'm gonna pick the Target-Positive Material since this is the particle system for my positive target. So it will be the green color. So if I zoom in on this particle and then stop it and then simulate it, you can see it's basically sort of boxes blowing out in all directions. So we've got our particle system set up. I want to do a couple more things here. I want to add an audio source cuz I want a sound effect to go along with this particle effect. So we'll Add Component > Audio > Source. And let's go ahead and attach the audio clip. So I'll hit the Target, and I'm gonna use the Positive Hit sound effect, because this will be for the positive targets. And the final thing that I want to do is add that Timed Object Destructor because the particle's gonna be generated when I shoot the target. I want it to play and then I want it to clean up after itself. So let me go ahead and Add Component > Script > Timed Object Destructor and I'm just gonna have it exist for 1 second and then destroy itself. Remember the particle itself, we said will only last for about a little less than a half of a second. Okay, we've got this game object all set up. I'm goinna go ahead and make this into a prefab. So let me go ahead and drag and drop it into the Prefabs. And of course I can get rid of it out of my game world. And I wanna make very similar Prefabs for the negative target. So the targets that maybe take away time. So let me click on the Positive-Explosion that we just created and duplicate it. Can hit the Cmd+D or Ctrl+D. And let's go ahead and rename this to Negative-Explosion, or Target-Negative-Explosion. And really, I only need to change a few things. So under the Renderer, rather than the Positive Material, let's apply the negative material, so Target-Negative. And then the audio source rather than the positive hit, I'll choose the negative hit. And everything else remains the same. So I'm gonna go ahead and make a third one of these. So I'll duplicate that and change the sound to Target-Bonus-Explosion. And once again, under the Renderer, I'll change the Material to be the TargetBonusMaterial. And the audio clip, I'll change to the BonusHit audio clip, and then everything else remains the same. In the next video, we'll create Prefabs for the various types of targets in our game. [MUSIC]