layabox 使用龙骨动画的时候杂七杂八的事情很多
资源未加载完 崩溃
龙骨动画添加帧动画报错等等
Failed to load resource: net::ERR_FILE_NOT_FOUND [file:///G:/program/20191112/bin/res/spine/undefined]
自己封装了一个 要用的拿去
/**@author ccj
* 通用版本动画组件
* date:2019.11.27
*/
export default class SpineMr extends fairygui.GComponent {
constructor(str: string) {
super()
this._url = str;
this.create()
}
public mFactory: Laya.Templet
public mArmature: Laya.Skeleton
public isComplete: boolean;
public _url: string
public rest() {
this.isComplete = false
this._url = ""
}
private create() {
this.mFactory = new Laya.Templet();
this.mFactory.on(Laya.Event.COMPLETE, this, this.parseComplete)//or 'complete'
thi