|
@@ -2,6 +2,7 @@
|
|
using UnityEngine;
|
|
using UnityEngine;
|
|
using UI.LuckyBox;
|
|
using UI.LuckyBox;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
|
|
+using FairyGUI;
|
|
|
|
|
|
namespace GFGGame
|
|
namespace GFGGame
|
|
{
|
|
{
|
|
@@ -12,9 +13,13 @@ namespace GFGGame
|
|
private List<ItemData> _rewardList;
|
|
private List<ItemData> _rewardList;
|
|
private int _type = 0;//弹窗类型:0可跳过,1:首次获得物品不可跳过,2首次获得物品不可跳过,不弹获得套装界面
|
|
private int _type = 0;//弹窗类型:0可跳过,1:首次获得物品不可跳过,2首次获得物品不可跳过,不弹获得套装界面
|
|
|
|
|
|
|
|
+ private GameObject gameObject;
|
|
|
|
+ private GoWrapper wrapper;
|
|
public override void Dispose()
|
|
public override void Dispose()
|
|
{
|
|
{
|
|
base.Dispose();
|
|
base.Dispose();
|
|
|
|
+ SceneController.DestroyObjectFromView(gameObject);
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
protected override void OnInit()
|
|
protected override void OnInit()
|
|
@@ -31,6 +36,8 @@ namespace GFGGame
|
|
_ui.m_bg.onTouchBegin.Add(OnClickBg);
|
|
_ui.m_bg.onTouchBegin.Add(OnClickBg);
|
|
_ui.m_btnPass.onClick.Add(OnClickBtnPass);
|
|
_ui.m_btnPass.onClick.Add(OnClickBtnPass);
|
|
|
|
|
|
|
|
+ string resPath = ResPathUtil.GetViewEffectPath("ui_ck", "ui_ck_zs");
|
|
|
|
+ SceneController.AddObjectToView(gameObject, null, _ui.m_comCard.m_holder, resPath, out gameObject, out wrapper);
|
|
}
|
|
}
|
|
protected override void OnShown()
|
|
protected override void OnShown()
|
|
{
|
|
{
|
|
@@ -55,6 +62,7 @@ namespace GFGGame
|
|
|
|
|
|
_ui.m_comCard.m_txtName.text = itemCfg.name;
|
|
_ui.m_comCard.m_txtName.text = itemCfg.name;
|
|
_ui.m_comCard.m_txtDiscribe.text = itemCfg.desc;
|
|
_ui.m_comCard.m_txtDiscribe.text = itemCfg.desc;
|
|
|
|
+ _ui.m_comCard.m_holder.visible = true;
|
|
|
|
|
|
if (LuckyBoxDataManager.Instance.FirstRewardList.ContainsKey(_rewardList.Count - 1) == true)
|
|
if (LuckyBoxDataManager.Instance.FirstRewardList.ContainsKey(_rewardList.Count - 1) == true)
|
|
{
|
|
{
|
|
@@ -84,7 +92,10 @@ namespace GFGGame
|
|
|
|
|
|
_ui.m_t_close.Play(() =>
|
|
_ui.m_t_close.Play(() =>
|
|
{
|
|
{
|
|
- _ui.m_t_open.Play();
|
|
|
|
|
|
+ _ui.m_comCard.m_holder.visible = false;
|
|
|
|
+ _ui.m_t_open.Play(() =>
|
|
|
|
+ {
|
|
|
|
+ });
|
|
UpdateView();
|
|
UpdateView();
|
|
});
|
|
});
|
|
}
|
|
}
|