// Global.js 定义全局变量
window.Global = {
worldNode: null,
};
// World.js
Global.worldNode =this;
// Player.js
var bodyA = Global.worldNode.world.CreateBody(bodyDef);
// Global.js 定义全局变量
window.Global = {
worldNode: null,
};
// World.js
Global.worldNode =this;
// Player.js
var bodyA = Global.worldNode.world.CreateBody(bodyDef);
本文标题:Cocos Creator + Box2d prefab
本文链接:https://www.haomeiwen.com/subject/fblzvttx.html
网友评论