📅  最后修改于: 2022-03-11 14:49:18.356000             🧑  作者: Mango
//ignores all collisions between the object collided with and the
//gameobject that this script is attached to
Physics.IgnoreCollision(
collision.gameObject.GetComponent(),
gameObject.GetComponent());