📅  最后修改于: 2022-03-11 14:49:02.240000             🧑  作者: Mango
public Collider2D objectCollider;
public Collider2D anotherCollider;
private void SomeMethod()
{
if (objectCollider.IsTouching(anotherCollider))
{
// Do something;
}
}