| | |
| | | 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.auctionIcon != null)
|
| | | {
|
| | | PasteImage(_item.auctionIcon, _source.image);
|
| | | }
|
| | | break;
|
| | | case ItemCellComType.Reduce:
|
| | | if (_item is ItemCell)
|
| | | {
|