collider.once(Contact2DType.BEGIN_CONTACT,this.onBeginContact ,this);
onBeginContact (self:Collider2D,other:Collider2D,contact:IPhysics2DContact|null)
collider.once(Contact2DType.BEGIN_CONTACT,this.onBeginContact ,this);
onBeginContact (self:Collider2D,other:Collider2D,contact:IPhysics2DContact|null)
这个函数不是只会触发一次么 怎么会提示我销毁两次或者更多。
改一下方法名,这个方法名会自动绑定的,再加上你手工绑定的就两次了