📅  最后修改于: 2022-03-11 14:48:59.861000             🧑  作者: Mango
void OnCollisionEnter(Collision collision)
{
if (collision.gameObject.layer == 8/*the layer number*/ )
debug.log(collision.gameObject.layer.number.ToString() "touched")
}