mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
update
This commit is contained in:
@@ -14,6 +14,7 @@ import { GTactical } from "../../entity/GTactical";
|
||||
import { Vec2 } from "cc";
|
||||
import { GSkill, GSkillBase, GSkillState } from "../../skill/GSkill";
|
||||
import { TableGRoleSkill } from "../../../../resources/config/ts/TableGRoleSkill";
|
||||
import JNFrameTime from "../../../../../extensions/ngame/assets/ngame/sync/frame/game/time/JNFrameTime";
|
||||
const { property,ccclass } = _decorator;
|
||||
|
||||
//默认角色类
|
||||
@@ -42,6 +43,10 @@ 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