cc.Class({ extends: cc.Component, properties: { bg: { default: null, type: cc.Node }, views: { default: null, type: cc.Node } }, onLoad: function() { window.game.bg = this.bg; window.game.views = this.views; }, });