@1112682 写道:
在代码中添加碰撞boxcollider(简单的两个碰撞) ,在浏览器中可以生效,但是用微信小程序跑起来的在碰撞时,却报错!
报错代码:
VM139:1 gameThirdScriptError
this.testFunc is not a function
TypeError: this.testFunc is not a function
at Contact.61.Contact.test (http://127.0.0.1:25557/game/cocos2d-js.94891.js:11868:70)
at Contact.61.Contact.updateState (http://127.0.0.1:25557/game/cocos2d-js.94891.js:11874:25)
at CCClass.update (http://127.0.0.1:25557/game/cocos2d-js.94891.js:11604:43)
at TheClass.update (http://127.0.0.1:25557/game/cocos2d-js.94891.js:9376:85)
at TheClass.mainLoop (http://127.0.0.1:25557/game/cocos2d-js.94891.js:7013:29)
at callback (http://127.0.0.1:25557/game/cocos2d-js.94891.js:7904:22)
帖子: 2
参与者: 1