📜  ontriggerenter2d 不工作 - C# 代码示例

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

代码示例1
Unity Monobehavior Lifecycle methods start with a capital and C# methods are case-sensitive.
Therefore, the following methods need to be corrected to be used by Unity:
onTriggerEnter2D => OnTriggerEnter2D