4153 【前端】精炼过的翅膀,脱下入包动画品质框与实际品质一致
| | |
| | | public int id;
|
| | | public int count;
|
| | | public bool bind;
|
| | | public int quality;
|
| | |
|
| | | public Item(int _id, int _count)
|
| | | {
|
| | | this.id = _id;
|
| | | this.count = _count;
|
| | | this.bind = false;
|
| | | this.quality = 0;
|
| | | }
|
| | |
|
| | | public Item(int _id, int _count, bool _bind)
|
| | |
| | | this.id = _id;
|
| | | this.count = _count;
|
| | | this.bind = _bind;
|
| | | this.quality = 0;
|
| | | }
|
| | |
|
| | | public Item(int _id, int _count, bool _bind, int _quality)
|
| | | {
|
| | | this.id = _id;
|
| | | this.count = _count;
|
| | | this.bind = _bind;
|
| | | this.quality = _quality;
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | var itemBehaviour = RequireBehaviour(); |
| | | if (itemBehaviour != null) |
| | | { |
| | | var quality = modelInterface.GetItemQuality(itemId, model.useDataDict); |
| | | itemBehaviour.transform.SetParentEx(this.transform, Vector3.zero, Quaternion.identity, Vector3.one); |
| | | itemBehaviour.Begin(new Item(itemId, 1), m_StartPoint.localPosition, m_EndPoint.localPosition, OnBehaviourFinished); |
| | | itemBehaviour.Begin(new Item(itemId, 1, false, quality), m_StartPoint.localPosition, m_EndPoint.localPosition, OnBehaviourFinished); |
| | | showingItems.Add(itemBehaviour.gameObject); |
| | | } |
| | | } |
| | |
| | | }
|
| | |
|
| | | public bool itemBind { get; private set; }
|
| | | public int itemQuality { get; private set; }
|
| | |
|
| | | private void Awake()
|
| | | {
|
| | |
| | |
|
| | | public void SetItem(Item _item)
|
| | | {
|
| | | SetItem(_item.id, _item.count, _item.bind);
|
| | | SetItem(_item.id, _item.count, _item.bind, _item.quality);
|
| | | }
|
| | |
|
| | | public void SetItem(int _id, int _count, bool _bind = false)
|
| | | public void SetItem(int _id, int _count, bool _bind = false, int _quality = 0)
|
| | | {
|
| | | itemId = _id;
|
| | | itemCount = _count;
|
| | | itemBind = _bind;
|
| | | itemQuality = _quality;
|
| | | DisplayBaseInfo();
|
| | | DisplayCount();
|
| | | }
|
| | |
| | | if (backGround != null)
|
| | | {
|
| | | backGround.gameObject.SetActive(true);
|
| | | backGround.SetItemBackGround(itemInfo.ItemColor);
|
| | |
|
| | | backGround.SetItemBackGround(itemQuality != 0 ? itemQuality : itemInfo.ItemColor);
|
| | | }
|
| | |
|
| | | if (m_Stars != null)
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | if (m_Bind!=null)
|
| | | if (m_Bind != null)
|
| | | {
|
| | | m_Bind.gameObject.SetActive(itemBind);
|
| | | }
|