76 lines
1.6 KiB
C#
76 lines
1.6 KiB
C#
using System.Collections;
|
|
using System.Globalization;
|
|
using DG.Tweening;
|
|
using FairyGUI;
|
|
using FGUI.Loading_25;
|
|
using FGUI.tixian;
|
|
using UnityEngine;
|
|
|
|
namespace ChillConnect
|
|
{
|
|
public class RedeemCodeUI : BaseUI
|
|
{
|
|
private RedeemCodeUICtrl ctrl;
|
|
private RedeemCodeModel model;
|
|
private com_redeem_code ui;
|
|
|
|
public RedeemCodeUI(RedeemCodeUICtrl ctrl) : base(ctrl)
|
|
{
|
|
uiName = UIConst.RedeemCodeUI;
|
|
this.ctrl = ctrl;
|
|
}
|
|
|
|
protected override void SetUIInfo(UIInfo uiInfo)
|
|
{
|
|
uiInfo.packageName = "tixian";
|
|
uiInfo.assetName = "com_redeem_code";
|
|
uiInfo.layerType = UILayerType.Loading;
|
|
uiInfo.isNeedOpenAnim = false;
|
|
uiInfo.isNeedCloseAnim = false;
|
|
uiInfo.isNeedUIMask = false;
|
|
}
|
|
|
|
#region 生命周期
|
|
|
|
protected override void OnInit()
|
|
{
|
|
}
|
|
|
|
protected override void OnClose()
|
|
{
|
|
GameDispatcher.Instance.Dispatch(GameMsg.StopArrowTouch, true);
|
|
}
|
|
|
|
protected override void OnBind()
|
|
{
|
|
ui = baseUI as com_redeem_code;
|
|
}
|
|
|
|
protected override void OnOpenBefore(object args)
|
|
{
|
|
GameDispatcher.Instance.Dispatch(GameMsg.StopArrowTouch, false);
|
|
|
|
}
|
|
|
|
protected override void OnOpen(object args)
|
|
{
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region 消息
|
|
|
|
protected override void AddListener()
|
|
{
|
|
|
|
}
|
|
|
|
protected override void RemoveListener()
|
|
{
|
|
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|