Detect the objects staying on top of the Particles
Hi everyone, I made a game where player will create a poison field. The poison field is made with particle system, therefore the shape of the field is random. like this:
Problem is:
I need to let all the enemies on the poison field take damage.
Things I have tried:
1.
I tired using trigger module in the particle system, but onParticleTrigger() doesn't have access to the collision event.
2.
onParticleCollision(GameObject other) will make the poison field colliding and pushing the enemies, which is not a poison field should do.
3.
I also googled and tried to find a way to copy the bounds of the random poison field, and use onTriggerStay2D() but no luck.
Does anyone have any ideas how to solve this problem? Thanks!!
Your answer
Follow this Question
Related Questions
Can't make the player attack an enemy 0 Answers
How to show an object when collided with 0 Answers