|
@@ -1,7 +1,7 @@
|
|
|
using UI.CommonGame;
|
|
|
using FairyGUI;
|
|
|
using UnityEngine;
|
|
|
-
|
|
|
+using UI.LuckyBox;
|
|
|
|
|
|
namespace GFGGame
|
|
|
{
|
|
@@ -103,7 +103,7 @@ namespace GFGGame
|
|
|
|
|
|
private void UpdateItem(int itemdId)
|
|
|
{
|
|
|
- UI_LuckyBoxBonusItem itemUI = _ui.m_item;
|
|
|
+ UI_LuckyBoxBonusItem itemUI = UI_LuckyBoxBonusItem.Proxy(_ui.m_item);
|
|
|
ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(itemdId);
|
|
|
itemUI.m_comIcon.m_icon.url = ResPathUtil.GetIconPath(itemCfg);
|
|
|
string itemName = itemCfg.name;
|
|
@@ -112,6 +112,7 @@ namespace GFGGame
|
|
|
itemUI.target.data = itemdId;
|
|
|
itemUI.target.onClick.Clear();
|
|
|
itemUI.target.onClick.Add(OnClickItemUI);
|
|
|
+ UI_LuckyBoxBonusItem.ProxyEnd();
|
|
|
}
|
|
|
|
|
|
private void OnClickItemUI(EventContext context)
|
|
@@ -135,7 +136,7 @@ namespace GFGGame
|
|
|
{
|
|
|
SuitCfg suitCfg = SuitCfgArray.Instance.GetCfg(suitId);
|
|
|
_ui.m_txtName.text = "套装·" + suitCfg.name;
|
|
|
- int targetY = (int)(_ui.m_item.target.y + _ui.m_item.target.height + 50);
|
|
|
+ int targetY = (int)(_ui.m_item.y + _ui.m_item.height + 50);
|
|
|
if (count == totalCount)
|
|
|
{
|
|
|
guideId = 1;
|