Complete Cocos Creator port with level bundles, themes, and tooling.
Adds level prefabs, theme assets, audio, extensions, and deployment scripts for the Unity WebGL migration. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
10
extensions/game-controller-inspector/dist/scene-script.js
vendored
Normal file
10
extensions/game-controller-inspector/dist/scene-script.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
/** 编辑器 ▶ 预览:注入 data/levels-database.json(不打包进 resources) */
|
||||
exports.methods = {
|
||||
apply(json) {
|
||||
if (typeof window !== 'undefined' && json && typeof json === 'object') {
|
||||
window.__tfrhLevelsDatabaseJson = json;
|
||||
}
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user