fix(hero): 修复英雄视图初始化时未更新信息的问题
在HeroViewComp初始化时调用smc.updateHeroInfo更新英雄信息,确保视图与模型同步
This commit is contained in:
@@ -104,6 +104,7 @@ export class Hero extends ecs.Entity {
|
||||
// 初始化 buff/debuff 系统
|
||||
model.initAttrs();
|
||||
model.Attrs[Attrs.REVIVE_COUNT]=1
|
||||
|
||||
this.add(hv);
|
||||
oops.message.dispatchEvent(GameEvent.MasterCalled,{uuid:uuid})
|
||||
const move = this.get(HeroMoveComp);
|
||||
|
||||
Reference in New Issue
Block a user