collider.on(“onCollisionEnter”, this.onCollisionEnter, this);
1、这种写法是不是都不生效了?没有回调
collider.on(Contact2DType.BEGIN_CONTACT, this.onBeginContact, this);
2、是不是这种写法才可以生效?
3、第二种方法不论是否勾选编辑器的 Enabled Contact Listener 都有回调
collider.on(“onCollisionEnter”, this.onCollisionEnter, this);
1、这种写法是不是都不生效了?没有回调
collider.on(Contact2DType.BEGIN_CONTACT, this.onBeginContact, this);
2、是不是这种写法才可以生效?
3、第二种方法不论是否勾选编辑器的 Enabled Contact Listener 都有回调
枚举最后也是字符串
