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”动画即可。
什么问题?
我已经搜索了有关此问题的解决方案,使用了很多关键字,例如 spin/phaser/animation/pixi.js/orange group/github/time/replay/reset/init/etc...
但我找不到解决方案。