This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-02 01:41:11 +08:00
parent 0fcc565ece
commit 996b0ecfac
8 changed files with 81 additions and 7 deletions

View File

@@ -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)
}
}