Particle System in Unity 2D - How to Program it to Damage or Heal Player Character

Hi,

I’m currently in the Particle System portion of the Ruby’s Adventures 2D kit tutorial, and I was wondering about how I can use the Particle system (i.e. how to code the system) where it can damage (i.e. fireballs) or heal the player character. I know it has to do with using the OnCollision2D function, but I don’t know where to start.

Can anyone help me with this?

Thanks!

You might be looking for how to use OnParticleCollision/OnParticleTrigger if you’re looking to use the particles themselves as colliders

Check out YouTube for Unity particle collider and similar search terms if you want a video guide.