unity does collision count if two objects are touching code example
Example: unity check if colliders are touching
public Collider2D objectCollider;
public Collider2D anotherCollider;
private void SomeMethod()
{
if (objectCollider.IsTouching(anotherCollider))
{
// Do something;
}
}