diff --git a/JisolGameCocos/assets/script/ui/Home/ForgingBench/MainForgingBench.ts b/JisolGameCocos/assets/script/ui/Home/ForgingBench/MainForgingBench.ts index 4d3e9f40..9d956b22 100644 --- a/JisolGameCocos/assets/script/ui/Home/ForgingBench/MainForgingBench.ts +++ b/JisolGameCocos/assets/script/ui/Home/ForgingBench/MainForgingBench.ts @@ -24,7 +24,7 @@ export class MainForgingBench extends Component { onLoad(){ //监听锻造数据 - app.event.on(PetEquipDataEnum.UPDATE_FORGING_INFO,this.onUpdateForging,this); + app.event.on(PetEquipDataEnum.UPDATE_FORGING_INFO,this.onUpdateView,this); app.event.on(PetEquipDataEnum.UPDATE_EQUIP,this.onUpdateEquip,this); this.onUpdateView(); @@ -33,7 +33,7 @@ export class MainForgingBench extends Component { protected onDestroy(): void { - app.event.off(PetEquipDataEnum.UPDATE_FORGING_INFO,this.onUpdateForging,this); + app.event.off(PetEquipDataEnum.UPDATE_FORGING_INFO,this.onUpdateView,this); app.event.off(PetEquipDataEnum.UPDATE_EQUIP,this.onUpdateEquip,this); }