//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, November 06, 2018
|
//--------------------------------------------------------
|
|
using System;
|
using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using UnityEngine.UI;
|
|
namespace vnxbqy.UI
|
{
|
|
public class MultiRechargeWin : Window
|
{
|
|
[SerializeField] Button m_GetReward;
|
[SerializeField] Text m_Time;
|
|
MultiRechargeModel model
|
{
|
get { return ModelCenter.Instance.GetModel<MultiRechargeModel>(); }
|
}
|
|
|
#region Built-in
|
protected override void BindController()
|
{
|
}
|
|
protected override void AddListeners()
|
{
|
|
m_GetReward.onClick.AddListener(GetReward);
|
|
}
|
|
protected override void OnPreOpen()
|
{
|
model.isOpenWin = true;
|
model.UpdateRedpoint();
|
Dipslay();
|
}
|
|
protected override void OnAfterOpen()
|
{
|
}
|
|
protected override void OnPreClose()
|
{
|
|
}
|
|
protected override void OnAfterClose()
|
{
|
}
|
#endregion
|
|
private void Dipslay()
|
{
|
DisplayTime();
|
}
|
private void DisplayTime()
|
{
|
OperationBase operationBase;
|
if (OperationTimeHepler.Instance.TryGetOperationTime(Operation.MultiRecharge, out operationBase))
|
{
|
OperationMultiRecharge operation = operationBase as OperationMultiRecharge;
|
m_Time.text = StringUtility.Contact(Language.Get("ExpActivity_Text1"),
|
UIHelper.AppendColor(TextColType.Green, operation.ToDisplayTime()));
|
}
|
}
|
private void GetReward()
|
{
|
WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.VipRechargeFunc1);
|
}
|
|
|
}
|
|
}
|