future 1 سال پیش
والد
کامیت
71ab7146e1
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      assets/script/run/ui/ui_boss_info.ts

+ 1 - 1
assets/script/run/ui/ui_boss_info.ts

@@ -25,7 +25,7 @@ export class ui_boss_info extends ui_base {
         gameManager.initUiBaseAtt(this.bg_bar,this.mBossData.bg_bar)
         gameManager.initUiBaseAtt(this.bar,this.mBossData.bar)
         gameManager.initUiBaseAtt(this.head,this.mBossData.head)
-        this.bg_bar.getComponent(ProgressBar).totalLength = this.bg_bar.getComponent(UITransform).width
+        this.bg_bar.getComponent(ProgressBar).totalLength = this.bar.getComponent(UITransform).width
         this.bossHp = this.mBossData.hp;
         this.bg_bar.getComponent(ProgressBar).progress = 1;
         ClientEvent.on(config.EventRun.ON_BOSS_HURT,this.hurt.bind(this),this)