Time for action - go boom
I must say, there's a distinct missing element to our bomb-centric game to this point. What could it be, what could it be? Ah, yes. ASSPLOSIONS. When they hit the ground OR the player, those bombs need to blow up real good. Sounds like a particle system would do just the trick.
- Make sure you're no longer testing the game.
- Click on GameObject | Create Other | Particle System. Rename it Explosion. (Or Assplosion if you want to be awesome about it.)
- Create a new Prefab and name it Explosion. Drop it into your Prefabs folder to keep the project organized.
- Click and drag the Explosion Particle System into the Explosion Prefab container.
- Delete the Explosion Game Object from the Hierarchy panel.
- Point your mouse at the Scene ...
Get Unity 3D Game Development by Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.