//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, October 10, 2017
|
//--------------------------------------------------------
|
//钻石不足的充值引导
|
using System;
|
using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using UnityEngine.UI;
|
|
namespace Snxxz.UI {
|
|
public class RechargeTipWin : Window
|
{
|
public Button _CloseBtn;//关闭按钮
|
public Button _Btn_Recharge;//充值按钮
|
public static event Action JumpVipPanel;
|
#region Built-in
|
protected override void BindController()
|
{
|
}
|
|
protected override void AddListeners()
|
{
|
_CloseBtn.onClick.AddListener(CloseButton);
|
_Btn_Recharge.onClick.AddListener(RechargeButton);
|
}
|
|
protected override void OnPreOpen()
|
{
|
}
|
|
protected override void OnAfterOpen()
|
{
|
}
|
|
protected override void OnPreClose()
|
{
|
}
|
|
protected override void OnAfterClose()
|
{
|
}
|
|
|
void CloseButton()
|
{
|
Close();
|
|
}
|
|
void RechargeButton()
|
{
|
if (VersionConfig.Get().isBanShu)
|
{
|
SysNotifyMgr.Instance.ShowTip("FuncNoOpen_VIP");
|
return;
|
}
|
|
if (WindowCenter.Instance.IsOpen<VipRechargeWin>())
|
{
|
if (JumpVipPanel != null)
|
{
|
Close();
|
JumpVipPanel();
|
}
|
}
|
else
|
{
|
CloseImmediately();
|
WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.VipRechargeFunc1);
|
}
|
|
}
|
|
#endregion
|
|
}
|
|
}
|
|
|
|
|