/**
* 合成动画
*/
mergeAni() {
// let p: Laya.Prefab = Laya.loader.getRes(CPrefab.DiceMerge);
let p = Laya.Pool.getItemByCreateFun("merge", this.createFunMerge, this);
var own = p as Laya.View;//p.create()
return own;
}
createFunMerge() {
let p: Laya.Prefab = Laya.loader.getRes(CPrefab.DiceMerge);
return p.create();
}
// if (this.mergeView != null) {
// Laya.Pool.recover("merge", this.mergeView);
// }
网友评论