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