📜  统一检查其他对象是否正在碰撞 - C# 代码示例

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

代码示例1
public void OnCollisionEnter(Collision collision)
     {
         // Do your stuff here
     }
     
     //if your collider is a trigger
     public void OnTriggerEnter(Collider other)
     {
         // Do your stuff here
     }