mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
3.7.4 spine不同步转3.8.1 修复3.8.1 动画
This commit is contained in:
@@ -93,8 +93,8 @@ export default abstract class GRoleBase<T> extends GObject<T>{
|
||||
onSyncUpdate(dt: number,frame:JNFrameInfo, input?: T){
|
||||
|
||||
//更新状态机
|
||||
this.fsm && this.fsm.onUpdate(dt / 1000);
|
||||
this.fsmAnim && this.fsmAnim.onUpdate(dt / 1000);
|
||||
this.fsm && this.fsm.onUpdate(dt / 1000,frame);
|
||||
this.fsmAnim && this.fsmAnim.onUpdate(dt / 1000,frame);
|
||||
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user