升级 初步 修改错误提醒bug
This commit is contained in:
@@ -1981,7 +1981,6 @@
|
|||||||
"__prefab": {
|
"__prefab": {
|
||||||
"__id__": 85
|
"__id__": 85
|
||||||
},
|
},
|
||||||
"hcc_home": null,
|
|
||||||
"_id": ""
|
"_id": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -28900,7 +28900,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.CompPrefabInfo",
|
"__type__": "cc.CompPrefabInfo",
|
||||||
"fileId": "75OQX2gjJNqo96DWc/aEWA"
|
"fileId": "f7/EZY8/pM04gz3JrN9oit"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.PrefabInfo",
|
"__type__": "cc.PrefabInfo",
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ const { ccclass, property } = _decorator;
|
|||||||
@ccclass('HeroCardComp')
|
@ccclass('HeroCardComp')
|
||||||
@ecs.register('HeroCardComp', false)
|
@ecs.register('HeroCardComp', false)
|
||||||
export class HeroCardComp extends CCComp {
|
export class HeroCardComp extends CCComp {
|
||||||
@property(HeroHomeComp)
|
|
||||||
hcc_home: HeroHomeComp = null!;
|
hcc_home: HeroHomeComp = null!;
|
||||||
hcc_uuid: number = 0;
|
hcc_uuid: number = 0;
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@@ -27,6 +26,7 @@ export class HeroCardComp extends CCComp {
|
|||||||
oops.message.dispatchEvent("hero_card_show_info",{uuid:this.hcc_uuid})
|
oops.message.dispatchEvent("hero_card_show_info",{uuid:this.hcc_uuid})
|
||||||
}
|
}
|
||||||
check_show(event: string, args: any){
|
check_show(event: string, args: any){
|
||||||
|
// console.log("hero_card check_show",args)
|
||||||
this.show_bg(false)
|
this.show_bg(false)
|
||||||
if(args.uuid==this.hcc_uuid){
|
if(args.uuid==this.hcc_uuid){
|
||||||
this.show_bg(true)
|
this.show_bg(true)
|
||||||
|
|||||||
@@ -105,6 +105,9 @@ export class HeroHomeComp extends CCComp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
lv_up(){
|
lv_up(){
|
||||||
console.log("升级",smc.vmdata.items[1001],smc.heros[this.h_uuid].lv*HeroInfo[this.h_uuid].lvexp)
|
console.log("升级",smc.vmdata.items[1001],smc.heros[this.h_uuid].lv*HeroInfo[this.h_uuid].lvexp)
|
||||||
if(smc.vmdata.items[1001] < smc.heros[this.h_uuid].lv*HeroInfo[this.h_uuid].lvexp){
|
if(smc.vmdata.items[1001] < smc.heros[this.h_uuid].lv*HeroInfo[this.h_uuid].lvexp){
|
||||||
|
|||||||
Reference in New Issue
Block a user