
- Create the tags for each GameObject

- Tagging each GameObject with its own Tag




- Add Collider & RigidBody2D to each GameObject
- Set “Is Trigger” in Collider to make it as “Trigger Collider”
- Set “Gravity Scale“ in RigidBody2D to make them not to be affected by Gravity
- Set “Freeze Rotation” in RigidBody2D to make them not spin when collided




- Add “OnTriggerEnter2D(Collider2D)” method to each GameObject to detect and activate “Destroy()”
- To Sort each Collision, Use “Collider2D.tag”





- To Destroy “Player” or “Enemy”
- Create a Function, “PlayExplosion()”
- Instantiate the Explosion(Don’t forget to use “this.”)
- Write the Function inside “TriggerEnter2D()” to make the instantiation of Explosion happen when a collision is detected
- Create a Function, “PlayExplosion()”












