📜  统一检查碰撞器是否正在接触 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:02.240000             🧑  作者: Mango

代码示例1
public Collider2D objectCollider;
 public Collider2D anotherCollider;
 
 private void SomeMethod()
 {
     if (objectCollider.IsTouching(anotherCollider))
     {
         // Do something;
     }
 }