📅  最后修改于: 2022-03-11 14:48:50.306000             🧑  作者: Mango
Collider characterController = GetComponent();
Collider otherCollider = otherGameObject.GetComponent();
Physics.IgnoreCollision(characterController, otherCollider);