英雄成长基本完成
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user