[]Laya.loader.create 进度回调函数执行两次!!!
Laya.loader.create("Main/SMain.ls",Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false));
Manager.prototype.onProgress = function(value)
{
console.log("value=="+Math.floor(value*100)+"%");
}
输出结果:
0.19186599730944645
0.5251993306427798
1
0.5002049180327869
0.5626793032786885
0.6251536885245902
0.6876280737704918
0.7501024590163934
0.8125768442622952
0.8750512295081967
0.9375256147540983
1
Manager.prototype.onProgress = function(value)
{
console.log("value=="+Math.floor(value*100)+"%");
}
输出结果:
0.19186599730944645
0.5251993306427798
1
0.5002049180327869
0.5626793032786885
0.6251536885245902
0.6876280737704918
0.7501024590163934
0.8125768442622952
0.8750512295081967
0.9375256147540983
1
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
Aar0n
赞同来自: