|
@@ -6,6 +6,7 @@ using GameLogic.Combat.Hero;
|
|
|
using GameLogic.Combat.Hero.Turntable;
|
|
|
using GameLogic.Combat.Skill;
|
|
|
using UnityEngine;
|
|
|
+using Utility;
|
|
|
|
|
|
namespace Fort23.Mono
|
|
|
{
|
|
@@ -13,15 +14,16 @@ namespace Fort23.Mono
|
|
|
public partial class BossHpWidget : UIComponent
|
|
|
{
|
|
|
private CombatHeroEntity combatHeroEntity;
|
|
|
-
|
|
|
private CombatHeroSkillControl combatHeroSkillControl;
|
|
|
-
|
|
|
protected BetterList<EnemyGf_skill> currShowGfWidget = new BetterList<EnemyGf_skill>();
|
|
|
-
|
|
|
private HeroHpWidget heroHpWidget;
|
|
|
|
|
|
+ private string bossWidgetKey="bossWidget";
|
|
|
+ private string bossFaBaoKey="bossFaBao";
|
|
|
private void Init()
|
|
|
{
|
|
|
+ bossWidgetKey= "bossWidget"+UtilTools.GetLOGGUID();
|
|
|
+ bossFaBaoKey= "bossFaBao"+UtilTools.GetLOGGUID();
|
|
|
}
|
|
|
|
|
|
public override void AddEvent()
|
|
@@ -40,8 +42,8 @@ namespace Fort23.Mono
|
|
|
CombatEventManager.Instance.RemoveEventListener(CombatEventType.UseSkillFinish, UseSkillFinish);
|
|
|
UIManager.Instance.DormancyGComponent(heroHpWidget);
|
|
|
heroHpWidget = null;
|
|
|
- UIManager.Instance.DormancyAllGComponent<gf_widget>("bossWidget");
|
|
|
- UIManager.Instance.DormancyAllGComponent<MagicWeaponWidget>("bossFaBao");
|
|
|
+ UIManager.Instance.DormancyAllGComponent<gf_widget>(bossWidgetKey);
|
|
|
+ UIManager.Instance.DormancyAllGComponent<MagicWeaponWidget>(bossFaBaoKey);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -85,7 +87,7 @@ namespace Fort23.Mono
|
|
|
private async CTask ReshSkill()
|
|
|
{
|
|
|
currShowGfWidget.Clear();
|
|
|
- UIManager.Instance.DormancyAllGComponent<EnemyGf_skill>("bossWidget");
|
|
|
+ UIManager.Instance.DormancyAllGComponent<EnemyGf_skill>(bossWidgetKey);
|
|
|
|
|
|
int maxCount = 2;
|
|
|
SkillBasic[] skillQueue = combatHeroSkillControl.GetSkillQueue();
|
|
@@ -101,7 +103,7 @@ namespace Fort23.Mono
|
|
|
EnemyGf_skill gfWidget = await UIManager.Instance.CreateGComponentForObject<EnemyGf_skill>(
|
|
|
this.gf_widget,
|
|
|
null,
|
|
|
- SkillRoot, poolName: "bossWidget", isInstance: true);
|
|
|
+ SkillRoot, poolName: bossWidgetKey, isInstance: true);
|
|
|
gfWidget.InitSkillWidget(skillBasic, combatHeroEntity);
|
|
|
gfWidget.transform.SetAsLastSibling();
|
|
|
currShowGfWidget.Add(gfWidget);
|
|
@@ -138,7 +140,7 @@ namespace Fort23.Mono
|
|
|
EnemyGf_skill gfWidget = await UIManager.Instance.CreateGComponentForObject<EnemyGf_skill>(
|
|
|
this.gf_widget,
|
|
|
null,
|
|
|
- SkillRoot, poolName: "bossWidget", isInstance: true);
|
|
|
+ SkillRoot, poolName: bossWidgetKey, isInstance: true);
|
|
|
gfWidget.InitWidget(minSlots, combatHeroEntity);
|
|
|
gfWidget.transform.SetAsLastSibling();
|
|
|
currShowGfWidget.Add(gfWidget);
|
|
@@ -173,7 +175,7 @@ namespace Fort23.Mono
|
|
|
MagicWeaponWidget shengShiEventWidget =
|
|
|
await UIManager.Instance.CreateGComponentForObject<MagicWeaponWidget>(MagicWeaponWidget, null,
|
|
|
FaBaoRoot,
|
|
|
- isInstance: true, poolName: "bossFaBao");
|
|
|
+ isInstance: true, poolName: bossFaBaoKey);
|
|
|
shengShiEventWidget.InitWidget(combatMagicWeaponEntity);
|
|
|
}
|
|
|
}
|