5920 【前端】【1.5.100】诛仙塔功能开发
| | |
| | | WindowCenter.Instance.Close<DungeonGradeWin>(); |
| | | WindowCenter.Instance.Close<MapNameHintWin>(); |
| | | WindowCenter.Instance.Close<JadeDynastyTowerHintWin>(); |
| | | WindowCenter.Instance.Close<DemonJarBossLifeBarWin>(); |
| | | |
| | | model.RequestRefreshMonster(); |
| | | |
| | |
| | | public class TargetBriefInfo
|
| | | {
|
| | |
|
| | | public static int selectedNpcId { get; private set; }
|
| | |
|
| | | public static void Init()
|
| | | {
|
| | | GA_NpcFightBoss.s_OnSelect += OnShowBossLifeBar;
|
| | |
| | | if (CrossServerUtility.IsCrossServerOneVsOne() && _show)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | if (_show)
|
| | | {
|
| | | selectedNpcId = _npcId;
|
| | | }
|
| | | else
|
| | | {
|
| | | selectedNpcId = 0;
|
| | | }
|
| | |
|
| | | var mapId = PlayerDatas.Instance.baseData.MapID;
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | selectedNpcId = _npcId;
|
| | | var mapId = PlayerDatas.Instance.baseData.MapID;
|
| | | var dataMapId = ModelCenter.Instance.GetModel<DungeonModel>().GetDataMapIdByMapId(mapId);
|
| | | if (dataMapId == DemonJarModel.DEMONJAR_MAPID
|
| | |
| | |
|
| | | win.RefreshBossLifeBar(_instanceId, _npcId, _hp, _maxHp);
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | public void InitBossLifeBar()
|
| | | {
|
| | | m_BossLifeBar.gameObject.SetActive(true);
|
| | | var bossId = demonJarModel.GetBossIdByLine(model.mission.lineID);
|
| | | var npcConfig = Config.Instance.Get<NPCConfig>(bossId);
|
| | | var npcConfig = Config.Instance.Get<NPCConfig>(TargetBriefInfo.selectedNpcId);
|
| | | currentHp = (long)(model.mission.remainHPPer * 0.01f * BOSSHP_TOTAL);
|
| | | m_BossLifeBar.SetBaseInfo(bossId, (ulong)currentHp, BOSSHP_TOTAL, npcConfig.NPCLV);
|
| | | m_BossLifeBar.SetBaseInfo(TargetBriefInfo.selectedNpcId, (ulong)currentHp, BOSSHP_TOTAL, npcConfig.NPCLV);
|
| | |
|
| | | inited = true;
|
| | | }
|