using System;
|
using UnityEngine;
|
using UnityEngine.UI;
|
|
namespace Snxxz.UI
|
{
|
public class AwardExchangeWin : Window
|
{
|
[SerializeField] InputField input;
|
[SerializeField] Button receiveBtn;
|
|
protected override void BindController()
|
{
|
|
}
|
|
protected override void AddListeners()
|
{
|
receiveBtn.AddListener(ClickRecevieBtn);
|
}
|
|
protected override void OnPreOpen()
|
{
|
InitUI();
|
}
|
protected override void OnAfterOpen()
|
{
|
this.transform.SetAsLastSibling();
|
}
|
|
protected override void OnPreClose()
|
{
|
|
}
|
|
protected override void OnAfterClose()
|
{
|
|
}
|
|
private void InitUI()
|
{
|
input.text = string.Empty;
|
}
|
|
private void ClickRecevieBtn()
|
{
|
string passward = input.text;
|
if(string.IsNullOrEmpty(passward))
|
{
|
SysNotifyMgr.Instance.ShowTip("InputExchangeCode");
|
return;
|
}
|
}
|
|
}
|
}
|