mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
更新无限地图
This commit is contained in:
@@ -82,7 +82,7 @@ export default abstract class GRoleBase<T> extends GObject<T>{
|
||||
//初始化
|
||||
protected init(role:TableGRole){
|
||||
if(this.spine)
|
||||
this.spine.skeletonData = app.role.skData[role.id];
|
||||
this.spine.skeletonData = app.battleRes.skData[role.id];
|
||||
}
|
||||
|
||||
//创建一个状态机
|
||||
|
@@ -27,7 +27,6 @@ export default class GRoleDefault extends GRoleBase<{}>{
|
||||
//能量条
|
||||
@property(ProgressBar)
|
||||
energyVolume:ProgressBar;
|
||||
|
||||
|
||||
//状态机
|
||||
fsm:GFSMDefault;
|
||||
@@ -43,10 +42,6 @@ export default class GRoleDefault extends GRoleBase<{}>{
|
||||
if(this.isDie){
|
||||
//死亡回调
|
||||
this.killBack.forEach(fun => fun(this));
|
||||
//死亡销毁
|
||||
JNFrameTime.getInstance().setTimeout(() => {
|
||||
this.node.destroy()
|
||||
},3000)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user