少年修仙传客户端基础资源
cehua_Czg
2019-04-22 5bbcb15dc081ede6e6d390c81e7ec64901a1988a
Assets/Editor/Tool/FormatPrefabTool.cs
@@ -279,28 +279,6 @@
                                PasteImage(_item.stateIcon, _source.image);
                            }
                            break;
                        case ItemCellComType.Star:
                            if (_item.starlist != null)
                            {
                                PasteRectTransform(_item.starlist.transform as RectTransform, _source.transform);
                                int _index = 0;
                                foreach (RectTransform _rect in _item.starlist.transform)
                                {
                                    if (_index >= _source.stars.Count)
                                    {
                                        break;
                                    }
                                    PasteImage(_rect.GetComponent<Image>(), _source.stars[_index]);
                                    _index++;
                                }
                            }
                            break;
                        case ItemCellComType.Lock:
                            if (_item.bindIcon != null)
                            {
                                PasteImage(_item.bindIcon, _source.image);
                            }
                            break;
                        case ItemCellComType.Reduce:
                            if (_item is ItemCell)
                            {
@@ -354,20 +332,6 @@
                            if (_item.icon != null)
                            {
                                PasteImage(_item.icon, _source.image);
                            }
                            break;
                        case ItemCellComType.Star:
                            if (_item.stars != null && _item.stars.Length > 0)
                            {
                                PasteRectTransform(_item.stars[0].transform.parent as RectTransform, _source.transform);
                                for (int k = 0; k < _item.stars.Length; k++)
                                {
                                    if (k >= _source.stars.Count)
                                    {
                                        break;
                                    }
                                    PasteImage(_item.stars[k], _source.stars[k]);
                                }
                            }
                            break;
                        case ItemCellComType.Count: