at EventEmitter.topLevelDomainCallback (domain.js:124:23)
2026-07-16T07:16:04.962Z - normal: Simulator: JS: [ERROR]: (see stack) Uncaught TypeError: camera.addTarget is not a function [0]init@dst/assets/scripts/Game/Snake.js:69
2026-07-16T07:16:04.963Z - normal: Simulator: [1]onEnable@dst/assets/scripts/UIGame.js:193
2026-07-16T07:16:04.963Z - normal: Simulator: [2]invokeOnEnable@src/cocos2d-jsb.js:27705
2026-07-16T07:16:04.964Z - normal: Simulator: [3]invoke@src/cocos2d-jsb.js:27617
2026-07-16T07:16:04.964Z - normal: Simulator: [4]activateNode@src/cocos2d-jsb.js:39233
2026-07-16T07:16:04.965Z - normal: Simulator: [5]set@src/cocos2d-jsb.js:54212
2026-07-16T07:16:04.969Z - normal: Simulator: [6]openUI@dst/assets/scripts/UIManager.js:70
2026-07-16T07:16:04.970Z - normal: Simulator: [7]update@dst/assets/scripts/UILoading.js:165
2026-07-16T07:16:04.972Z - normal: Simulator: [8]eval@(no filename):3
2026-07-16T07:16:04.974Z - normal: Simulator: [9]anonymous@src/cocos2d-jsb.js:27667
2026-07-16T07:16:04.981Z - normal: Simulator: [10]invoke@src/cocos2d-jsb.js:27650
2026-07-16T07:16:04.983Z - normal: Simulator: [11]updatePhase@src/cocos2d-jsb.js:27771
2026-07-16T07:16:04.988Z - normal: Simulator: [12]mainLoop@src/cocos2d-jsb.js:17764
2026-07-16T07:16:04.989Z - normal: Simulator: [13]callback@src/cocos2d-jsb.js:18005
2026-07-16T07:16:05.013Z - normal: Simulator: [14]tick@jsb-adapter/jsb-builtin.js:2156
2026-07-16T07:16:05.017Z - normal: Simulator: ScriptEngine::cleanup begin …
2026-07-16T07:16:05.018Z - normal: Simulator: GC begin …, (js->native map) size: 1393, all objects: 2100
没有任何背景,就放一段报错的代码。很难有人能帮到你的。希望你仔细补充一下背景。
这不是很明显吗?Snake.js 脚本的 第69行