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