Laya.loader.create(["Main/SMain.ls","Role/Role.lh"],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