| | |
| | | public static PlayerInfo playerInfo { get; private set; }
|
| | | public static MonsterInfo bossInfo { get; private set; }
|
| | |
|
| | | static HazyDemonKingModel hazyDemonKingModel { get { return ModelCenter.Instance.GetModel<HazyDemonKingModel>(); } }
|
| | |
|
| | | public static void Init()
|
| | | {
|
| | | GA_NpcFightBoss.s_OnSelect += OnShowBossLifeBar;
|
| | |
| | | static void OnShowBossLifeBar(uint _instanceId, int _npcId, bool _show)
|
| | | {
|
| | | if (CrossServerUtility.IsCrossServerOneVsOne() && _show)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | if (hazyDemonKingModel.IsInDungeon && !_show)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | if (hazyDemonKingModel.IsInDungeon)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | if (_show)
|
| | | {
|
| | | var player = GAMgr.Instance.GetBySID(_instanceId) as GActorPlayerBase;
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | if (hazyDemonKingModel.IsInDungeon)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | bossInfo = default(MonsterInfo);
|
| | | var player = GAMgr.Instance.GetBySID(_instanceId) as GActorPlayerBase;
|
| | | if (player != null)
|