diff --git a/assets/resources/gui/role_controller.prefab b/assets/resources/gui/role_controller.prefab index 8f4dc8dd..8826dd3a 100644 --- a/assets/resources/gui/role_controller.prefab +++ b/assets/resources/gui/role_controller.prefab @@ -9029,6 +9029,8 @@ "__id__": 0 }, "fileId": "3e/itbSONFe7T5S/iJLg76", + "instance": null, + "targetOverrides": null, "nestedPrefabInstanceRoots": null }, { @@ -9579,6 +9581,8 @@ "__id__": 0 }, "fileId": "59mmXN1s9PZp+Vepx+N3kW", + "instance": null, + "targetOverrides": null, "nestedPrefabInstanceRoots": null }, { @@ -10129,6 +10133,8 @@ "__id__": 0 }, "fileId": "a4BeRm8YtFZYB5dzfCHcwp", + "instance": null, + "targetOverrides": null, "nestedPrefabInstanceRoots": null }, { @@ -10679,6 +10685,8 @@ "__id__": 0 }, "fileId": "e2yQcUKYRGma28xsO/H7qI", + "instance": null, + "targetOverrides": null, "nestedPrefabInstanceRoots": null }, { @@ -11229,6 +11237,8 @@ "__id__": 0 }, "fileId": "a7zzOlVplGTIJWYVzkn1yT", + "instance": null, + "targetOverrides": null, "nestedPrefabInstanceRoots": null }, { @@ -16733,6 +16743,8 @@ "__id__": 0 }, "fileId": "39DfWGRfVNILoTYMUIXAuv", + "instance": null, + "targetOverrides": null, "nestedPrefabInstanceRoots": null }, { diff --git a/assets/script/game/map/HeroHomeComp.ts b/assets/script/game/map/HeroHomeComp.ts index 0febcbd5..813aae04 100644 --- a/assets/script/game/map/HeroHomeComp.ts +++ b/assets/script/game/map/HeroHomeComp.ts @@ -50,7 +50,6 @@ export class HeroHomeComp extends CCComp { this.node.getChildByName("name").getChildByName("value").getComponent(Label).string=hero.name this.node.getChildByName("hero").getChildByName("lv").getComponent(Label).string = lv.toString()+"级"; let slv_node=this.node.getChildByName("hero").getChildByName("slv"); - if(smc.vmdata.heros[uuid].slv>=1) {slv_node.getChildByName("s1").active=true}else{slv_node.getChildByName("s1").active=false}; if(slv>=1) {slv_node.getChildByName("s1").active=true}else{slv_node.getChildByName("s1").active=false}; if(slv>=2) {slv_node.getChildByName("s2").active=true}else{slv_node.getChildByName("s2").active=false}; if(slv>=3) {slv_node.getChildByName("s3").active=true}else{slv_node.getChildByName("s3").active=false};