战斗开始 延迟刷新卡牌

This commit is contained in:
2025-05-29 10:11:24 +08:00
parent b7a05c2c24
commit 8cb3fe192d
2 changed files with 5 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ import { HeroViewComp } from "../hero/HeroViewComp";
const { ccclass, property } = _decorator;
/** 视图层对象 */
@ccclass('CardCompp')
@ccclass('CardComp')
@ecs.register('Card', false)
export class CardComp extends CCComp {
c_uuid:number=0;

View File

@@ -70,6 +70,7 @@ export class MissionComp extends CCComp {
smc.mission.status=1
this.colose_victory()
this.mission_init()
}
mission_end(){
@@ -119,6 +120,9 @@ export class MissionComp extends CCComp {
}
let hero = ecs.getEntity<Hero>(Hero);
hero.hart_load()
this.scheduleOnce(() => {
this.card_refresh()
}, 0.5)
}