📜  如何触发但也有冲突 - C# 代码示例

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

代码示例1
Attach an empty GameObject to the GameObject and center it to the parent
Add a collider and resize to fit the GameObject
Assign the player and the empty GameObject to a layer
go to Edit > Project Settings > Physics
uncheck collision between player layer and empty collider layer