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

@@ -114,6 +114,7 @@ export default class GRoleDefault extends GRoleBase<{}>{
//攻击
onAttack(){
if(!this.fsm.enemy) return;
console.log(`播放动画[${this.nId}] onAttack`,this.fsm.enemy.nId)
//敌人扣血
let info = TableGRoleAttack.getConfig(this.role.id);
(new GAttack[info.attackWay]()).attack(this,info);