From 21c1dcfae3e80fee891a1ff32a569dc978c59c1d Mon Sep 17 00:00:00 2001 From: "pan@work" Date: Mon, 23 Sep 2024 11:10:54 +0800 Subject: [PATCH] dd --- assets/script/game/common/SingletonModuleComp.ts | 11 ++++++++++- assets/script/game/hero/HeroViewComp.ts | 2 -- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/assets/script/game/common/SingletonModuleComp.ts b/assets/script/game/common/SingletonModuleComp.ts index d4e97b99..9ec87711 100644 --- a/assets/script/game/common/SingletonModuleComp.ts +++ b/assets/script/game/common/SingletonModuleComp.ts @@ -76,7 +76,6 @@ export class SingletonModuleComp extends ecs.Comp { game_pause:false, gems: 4, unlock:5, - mission:{ once:6, //每波刷新怪物数量 total:120, //总怪物数 @@ -89,6 +88,16 @@ export class SingletonModuleComp extends ecs.Comp { g_level:1, g_time:0, m_less:0, + hero:{ + reward_atk:0, + reward_atk_cd:0, + reward_hp:0, + }, + role:{ + reward_atk:0, + reward_atk_cd:0, + reward_hp:0, + } }, role:{ hp:3000, diff --git a/assets/script/game/hero/HeroViewComp.ts b/assets/script/game/hero/HeroViewComp.ts index 9e799d0d..985e7e77 100644 --- a/assets/script/game/hero/HeroViewComp.ts +++ b/assets/script/game/hero/HeroViewComp.ts @@ -395,8 +395,6 @@ export class HeroViewComp extends CCComp { } } - - heathed(){ this.node.getChildByName("heathed").active=true // var path = "game/skills/heathed";