We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
newStar.getComponent('Star').game=this; 不注释出现错误,注释无法实现功能 报错:(271)ERROR: Uncaught TypeError: Cannot read property 'length' of null, location: src/cocos2d-jsb.js:0:0 Simulator: E/jswrapper (534): [ERROR] (..\cocos\scripting\js-bindings\jswrapper\v8\Object.cpp, 534): Invoking function (1012C818) failed!
The text was updated successfully, but these errors were encountered:
第一步:在Game.js 里把 newStar.getComponent('Star').game=this; 替换成newStar.game=this 第二步:在Star.js里把this.game替换成this.node.game
newStar.getComponent('Star').game=this;
newStar.game=this
this.game
this.node.game
Sorry, something went wrong.
No branches or pull requests
newStar.getComponent('Star').game=this;
不注释出现错误,注释无法实现功能
报错:(271)ERROR: Uncaught TypeError: Cannot read property 'length' of null, location: src/cocos2d-jsb.js:0:0
Simulator: E/jswrapper (534): [ERROR] (..\cocos\scripting\js-bindings\jswrapper\v8\Object.cpp, 534): Invoking function (1012C818) failed!
The text was updated successfully, but these errors were encountered: