UtilTool.ts
364 Bytes
export class UtilTool {
static isPrint: boolean = false;
static log(...pram) {
if (!this.isPrint) return;
console.log(...pram);
}
static load(res, onProgress?: Laya.Handler): Promise<any> {
return new Promise((suc, fail) => {
Laya.loader.load(res, Laya.Handler.create(this, suc), onProgress);
})
}
}