I have this code:
void OnTrigger2D(Collider2D other)
{
if(other.gameObject.name == "Mouse")
{
Debug.Log("Meoew");
}
}
which returns no errors and looks right to me, yet no matter what I try the debug lof wont print. ive tried using OnCollisionEnter2D as well, I’ve tried making both objects triggers, ive tried making only one a trigger, heck ive tried making none of them triggers. I’ve added and removed the RigidBodies from both, I have no idea why this wont work.
Any insight?