void OnTriggerEnter(Collider 2D, other) code example
Example: ontriggerenter2d
void OnTriggerEnter2D(Collider2D col)
{
Debug.Log(gameObject.name + " Collided");
}
void OnTriggerEnter2D(Collider2D col)
{
Debug.Log(gameObject.name + " Collided");
}