问题描述
大家好,我一直在尝试找出一种方法,仅在补间完成时才允许以下功能,因此在补间仍处于活动状态时我应该无法触发该功能。 ** 澄清如果补间动画仍处于活动状态,则无法运行指针向上功能。在当前时刻,如果我发送垃圾邮件,鼠标单击精灵的旋转将返回到错误的位置。
this.counter = 0;
this.input.on('pointerup',function (pointer)
{
if (this.counter === 0) {
console.log('start animation!');
this.tweens.add(
{
targets: this.playerHands,angle: 20,duration: 120,yoyo: true
});
this.counter = 1;
} else {
this.tweens.add(
{
targets: this.playerHands,angle: -20,yoyo: true
});
this.counter = 0;
}
},this);
感谢任何建议。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)