private loadRes():void{
Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this, this.onAssetLoaded),Laya.Handler.create(this, this.onLoading, null, false));
}
private onLoading(progress: number): void {
console.log("加载进度: " + progress);
}
private onAssetLoaded(texture:Laya.Texture){
console.log("加载结束");
}
Log输出内容
Warning!,this class[MiniAdpter] already exist: Object {}
加载进度: 0.3
加载进度: 0.8999999999999999
加载进度: 1
加载结束
lose skin
lose skin
lose skin
lose skin
lose skin