var itemshop_idx = {
idle:1,
out:2,
in:3
};
spine_itemShop.state.onComplete = function (trackIndex) {
switch(trackIndex){
case itemshop_idx.in://in
spinePlay_1(spine_itemShop, "popup_item_shop_idle", itemshop_idx.idle, true);
break;
case itemshop_idx.out://out
group_itemShop.visible = false;
break;
}
};
spine_itemShop.setAnimationByName(itemshop_idx.in, "popup_item_shop_in", false);
此代码显示我" popup_item_shop_in"动画只有一次。 当我玩的时候
spine_itemShop.setAnimationByName(itemshop_idx.in, "popup_item_shop_in", false);
再次,我不会显示" popup_item_shop_in"动画。
只是被展示" popup_item_shop_idle"动画直接。
什么问题?
我搜索过有关此问题的解决方案使用了很多关键字 spine / phaser / animation / pixi.js / orange group / github / time / replay / reset / init / etc ......
但我无法找到解决方案。