| | |
| | | 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);
|
| | | }
|
| | | }
|
| | | }
|