永久数据不再mvvm显示
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user