少年修仙传客户端代码仓库
client_Hale
2018-12-05 2300ced5e5903b3d2d31bcd521aec3d78156962c
update
1个文件已修改
31 ■■■■■ 已修改文件
Fight/GameActor/GA_Pet.cs 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GA_Pet.cs
@@ -39,21 +39,28 @@
        if (_parentSID != PlayerDatas.Instance.PlayerId)
        {
            GA_Player _player = GAMgr.Instance.GetBySID(_parentSID) as GA_Player;
            if (_player != null)
            bool _showOrHide = true;
            int _index = -999;
            if (_player == null)
            {
                if (!_player.ShowOrHide)
                _showOrHide = false;
            }
            else
            {
                _showOrHide = _player.ShowOrHide;
                if (_showOrHide)
                {
                    ShowOrHideModel(false);
                    _index = BattleEffectPlayRule.Instance.GetIndex(_parentSID);
                    _showOrHide = _index != -1 && _index < BattleEffectPlayRule.Instance.petLimit;
                }
                else
                {
                    int _index = BattleEffectPlayRule.Instance.GetIndex(_parentSID);
                    if (_index == -1 || _index >= BattleEffectPlayRule.Instance.petLimit)
                    {
                        ShowOrHideModel(false);
                        Debug.LogFormat("宠物: {0} 的拥有者: {1} 在列表中且位于: {2}, 小于限制数量: {3}", ServerInstID, _parentSID, _index, BattleEffectPlayRule.Instance.petLimit);
                    }
                }
            }
            if (!_showOrHide)
            {
                ShowOrHideModel(_showOrHide);
                Debug.LogFormat("宠物: {0} 的拥有者: {1} 在列表中且位于: {2}, 小于限制数量: {3}", ServerInstID, _parentSID, _index, BattleEffectPlayRule.Instance.petLimit);
            }
        }
    }