少年修仙传客户端代码仓库
client_Hale
2018-12-05 b1487dd42232908b4deaa97417d4db74f5f3ac43
5224 帧数优化 宠物屏蔽
1个文件已修改
9 ■■■■■ 已修改文件
Fight/GameActor/GAMgr.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GAMgr.cs
@@ -110,7 +110,7 @@
        }
        Debug.LogFormat("共有: {0} 只宠物", _petList.Count);
        GA_Player _player = null;
        foreach (var _pet in _petList)
        {
            var _parentID = _pet.ActorInfo.ownerSID;
@@ -119,6 +119,13 @@
                continue;
            }
            _player = GetBySID(_parentID) as GA_Player;
            if (_player == null || !_player.ShowOrHide)
            {
                _pet.ShowOrHideModel(false);
                Debug.LogFormat("宠物: {0} 的拥有者: {1} 不可见, 这里隐藏.", _pet.ServerInstID, _parentID);
            }
            var _index = BattleEffectPlayRule.Instance.GetIndex(_parentID);
            if (_index != -1 && _index < BattleEffectPlayRule.Instance.petLimit)
            {