diff --git a/assets/Script/JiaZai.ts b/assets/Script/JiaZai.ts index 54350c2..491741c 100644 --- a/assets/Script/JiaZai.ts +++ b/assets/Script/JiaZai.ts @@ -262,13 +262,13 @@ stopHeathTimeCutDown() { if (cc.fx.GameConfig.GM_INFO.hp >= 5) { this.Stamina.getChildByName("man").active = true; this.Stamina.getChildByName("health").active = true; - NumberToImage.numberToImageNodes(4, 25, 15, "hp_", this.Stamina.getChildByName("health"), false); + NumberToImage.numberToImageNodes(cc.fx.GameConfig.GM_INFO.hp, 25, 15, "hp_", this.Stamina.getChildByName("health"), false); this.Stamina.getChildByName("time").active = false; } else { this.Stamina.getChildByName("man").active = false; this.Stamina.getChildByName("health").active = true; - NumberToImage.numberToImageNodes(4, 25, 15, "hp_", this.Stamina.getChildByName("health"), false); + NumberToImage.numberToImageNodes(cc.fx.GameConfig.GM_INFO.hp, 25, 15, "hp_", this.Stamina.getChildByName("health"), false); this.Stamina.getChildByName("time").active = true; if (cc.fx.GameConfig.GM_INFO.min_Time != 0) { let time = cc.fx.GameTool.getTimeMargin(cc.fx.GameConfig.GM_INFO.min_Time);