1. 发生碰撞
private void OnCollisionEnter(Collision collision)
{
print("OnCollisionEnter");
}
2. 碰撞后离开
private void OnCollisionExit(Collision collision)
{
print("OnCollisionExit");
}
3. 碰撞持续(类似update,帧数多)
private void OnCollisionStay(Collision collision)
{
print("OnCollisionStay");
}