This commit is contained in:
PC-20230316NUNE\Administrator
2023-10-25 19:19:52 +08:00
parent 5998a96d9e
commit cb70ba12c7
12 changed files with 214 additions and 53 deletions

View File

@@ -67,12 +67,21 @@ export default class GRolePVPEntity extends GRoleBase<GDemoMessage>{
}
protected fsmCreate(): GFSMPVP {
// return null;
return new GFSMPVP(this);
}
protected fsmAnimCreate(): GFSMBattleAmin {
return new GFSMBattleAmin(this.spine);
}
//添加死亡销毁
onHit(){
super.onHit();
if(this.isDie){
//销毁数据
this.mode.killRole(this);
this.node.removeFromParent();
}
}
}