英雄成长基本完成

This commit is contained in:
2024-12-08 00:15:59 +08:00
parent c8e4190f18
commit 02f1c99d7c
10 changed files with 9689 additions and 6384 deletions

View File

@@ -10,6 +10,7 @@ const { ccclass, property } = _decorator;
@ccclass('HeroCardComp')
@ecs.register('HeroCardComp', false)
export class HeroCardComp extends CCComp {
hcc_home: HeroHomeComp = null!;
hcc_uuid: number = 0;
onLoad() {
@@ -19,7 +20,7 @@ export class HeroCardComp extends CCComp {
start() {
this.hcc_home=this.node.parent.parent.parent.parent.getComponent(HeroHomeComp);
// console.log("hero_card hcc_home",this.hcc_home)
}
show_info(){
this.hcc_home.hero_show(this.hcc_uuid)