//--------------------------------------------------------
|
// [Author]: 第二世界
|
// [ Date ]: Tuesday, April 23, 2019
|
//--------------------------------------------------------
|
using UnityEngine;
|
using System.Collections;
|
using UnityEngine.UI;
|
|
namespace vnxbqy.UI
|
{
|
|
public class GetWayTrigger : MonoBehaviour
|
{
|
[SerializeField] int m_ItemId;
|
[SerializeField] Button m_Button;
|
|
private void Start()
|
{
|
if (m_Button != null)
|
{
|
m_Button.SetListener(View);
|
}
|
}
|
|
private void View()
|
{
|
if (m_ItemId != 0)
|
{
|
switch (m_ItemId)
|
{
|
case 2105:
|
WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.VipRechargeFunc1);
|
break;
|
default:
|
ModelCenter.Instance.GetModel<GetWayModel>().SetWays(m_ItemId);
|
WindowCenter.Instance.Open<GetWayWin>();
|
break;
|
}
|
}
|
}
|
|
public void SetItemId(int itemID)
|
{
|
m_ItemId = itemID;
|
}
|
}
|
|
}
|