3.7.4 spine不同步转3.8.1 修复3.8.1 动画

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-01 04:49:52 +08:00
parent 6ebed0b45e
commit 2825c1e1d4
328 changed files with 1222 additions and 362 deletions

View File

@@ -24,16 +24,21 @@ export default class GSkillBulbasaurDoubleHit extends GSkillAngerBase{
//关闭动画管理器
this.role.fsmAnim.close();
//监听伤害
this.role.fsmAnim.addEventListener("skill1Attack",() => {
let skill1Attack = () => {
if(!enemy.isDie){
enemy.onHit();
}
})
//播放妙蛙种子技能
this.role.spine.setTrackCompleteListener(this.role.spine.setAnimation(0,"skill1",false),() => {
};
let end = () => {
this.role.fsmAnim.open();
});
this.role.fsmAnim.delEventListener("skill1Attack",skill1Attack)
this.role.fsmAnim.delEndListener("skill1",end)
}
//监听伤害
this.role.fsmAnim.addEventListener("skill1Attack",skill1Attack)
//播放妙蛙种子技能
this.role.spine.setAnimation(0,"skill1",false);
this.role.fsmAnim.addEndListener("skill1",end)
return true;