¿Can a Point Effector 2D destroy gameObjects?,¿Can a point effector 2d destroy game objects ?

I’m trying to make an alien game, where my alien is in a spaceship in the sky trying to catch humans with a laser. I’ve added a collider and a point effector to the laser to catch the other gameObject(humans).
the problem comes when iI try to add a OnTriggerStay collider 2D.
I’ve added this code to my humans script:

private void OnTriggerStay(Collider other)
{
if (other.gameObject.tag == “abduccion”) ;
{
Destroy(gameObject);
}
}
the tag is the tag I’ve added to my laser object. Can’t understand why the collider isn’t working.

Hi there,

It seems that your project is 2D. And you are overwritting the method OnTriggerStay, that belongs to 3D.

You should want to try OnTriggerStay2D, instead.

Hope it helps.