[code] static init(par: fgui.GComponent) {
this.parent = par;
this.aniPath = "res/sk/pipei.skel";
this.index = -1;
this.startFun();
}
static startFun() {
if (!this.templet)
this.templet = new Laya.SpineTemplet(Laya.SpineVersion.v3_8);
this.templet.loadAni(this.aniPath);
this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete);
this.templet.on(Laya.Event.ERROR, this, this.onError);
}[/code]加载方式用的官方案例,本地跑是没问题的