永久数据不再mvvm显示

This commit is contained in:
2025-08-20 14:02:14 +08:00
parent dbe2da2927
commit b531948d4d
16 changed files with 519 additions and 509 deletions

View File

@@ -17,9 +17,14 @@ export class HCardUICom extends Component {
start() {
console.log("[HCardUICom]:start")
}
protected onLoad(): void {
oops.message.on(GameEvent.UpdateHero,this.to_update_hero,this)
}
update(deltaTime: number) {
}
to_update_hero(){
this.update_data(this.h_uuid,{type:this.type})
}
update_data(uuid:number,args:any){
this.type=args.type