版本是 3.0beta
系统是 win7 64位
命令是 cocos run -p android -ap 16
封装了一个文件
var TextEffect = cc.LabelBMFont.extend({
do something;
});
TextEffect.create = function (str, pos) {
var ret = new TextEffect();
if(ret && ret.init(str,pos))
return ret;
cc.log(“FrontEffect create fail str=”,str);
return null;
};
会报错
TypeError: cc.LabelBMFont.extend is not a function
是缺少什么文件 还是什么情况?