CultivateImmortal/Assets/Scripts/GameScene/UI/WorldPanel.cs

76 lines
1.9 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class WorldPanel : BasePanel
{
//求道
public Button btnTaoist;
//签到
public Button btnSignIn;
//天榜
public Button btnList;
//集市
public Button btnMarket;
//祈福
public Button btnPary;
//炼器台
public Button btnChain;
//降妖除魔
public Button btnDemon;
//魔界
public Button btnDevildom;
//天书阁
public Button btnLoft;
public override void Init()
{
//点击求道按钮做什么
btnTaoist.onClick.AddListener(() =>
{
UIManager.Instance.ShowPanel<QiudaoPanel>(E_UILayer.System);
});
//点击签到按钮做什么
btnSignIn.onClick.AddListener(() =>
{
UIManager.Instance.ShowPanel<QianDaoPanel>(E_UILayer.System);
});
//点击天榜按钮做什么
btnList.onClick.AddListener(() =>
{
UIManager.Instance.ShowPanel<RankPanel>(E_UILayer.System);
});
//点击集市按钮做什么
btnMarket.onClick.AddListener(() =>
{
UIManager.Instance.ShowPanel<MarketPanel>(E_UILayer.System);
});
//点击祈福按钮做什么
btnPary.onClick.AddListener(() =>
{
UIManager.Instance.ShowPanel<PrayPanel>(E_UILayer.System);
});
//点击炼器台按钮做什么
btnChain.onClick.AddListener(() =>
{
UIManager.Instance.ShowPanel<ChainPanel>(E_UILayer.System);
});
//点击降妖除魔按钮做什么
btnDemon.onClick.AddListener(() =>
{
UIManager.Instance.ShowPanel<XiangmoPanel>(E_UILayer.System);
});
//点击魔界按钮做什么
btnDevildom.onClick.AddListener(() =>
{
});
//点击天书阁按钮做什么
btnLoft.onClick.AddListener(() =>
{
UIManager.Instance.ShowPanel<BookPanel>(E_UILayer.System);
});
}
}