73 lines
2.0 KiB
C#
73 lines
2.0 KiB
C#
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
using UnityEngine.EventSystems;
|
|||
|
using UnityEngine.UI;
|
|||
|
|
|||
|
public class ExhPanel : BasePanel
|
|||
|
{
|
|||
|
//<2F>رս<D8B1><D5BD><EFBFBD>
|
|||
|
public Button btnClose;
|
|||
|
//<2F>رս<D8B1><D5BD><EFBFBD>
|
|||
|
public Button btnCanel;
|
|||
|
//<2F>ʼ<EFBFBD>
|
|||
|
public Button btnYJ;
|
|||
|
//<2F><>Ϸ<EFBFBD><CFB7><EFBFBD><EFBFBD>
|
|||
|
public Button btnYXGG;
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
public Button btnYJFK;
|
|||
|
//<2F>ٷ<EFBFBD>ý<EFBFBD><C3BD>
|
|||
|
public Button btnGFMT;
|
|||
|
//<2F>淨˵<E6B7A8><CBB5>
|
|||
|
public Button btnWfSM;
|
|||
|
|
|||
|
public override void Init()
|
|||
|
{
|
|||
|
btnClose.onClick.AddListener(()=>
|
|||
|
{
|
|||
|
//<2F><><EFBFBD>ؽ<EFBFBD><D8BD><EFBFBD>
|
|||
|
UIManager.Instance.HidePanel<ExhPanel>();
|
|||
|
UIManager.Instance.GetPanel<GamePanel>().btnEXH.gameObject.SetActive(true);
|
|||
|
});
|
|||
|
btnCanel.onClick.AddListener(() =>
|
|||
|
{
|
|||
|
//<2F><><EFBFBD>ؽ<EFBFBD><D8BD><EFBFBD>
|
|||
|
UIManager.Instance.HidePanel<ExhPanel>();
|
|||
|
UIManager.Instance.GetPanel<GamePanel>().btnEXH.gameObject.SetActive(true);
|
|||
|
});
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD>ʼİ<CABC>ť<EFBFBD><C5A5>ʲô
|
|||
|
btnYJ.onClick.AddListener(() =>
|
|||
|
{
|
|||
|
UIManager.Instance.ShowPanel<MailPanel>();
|
|||
|
});
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD><CFB7><EFBFBD>水ť<E6B0B4><C5A5>ʲô
|
|||
|
btnYXGG.onClick.AddListener(() =>
|
|||
|
{
|
|||
|
StartCoroutine(NetMgr.Instance.NoticeMasgGet());
|
|||
|
});
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ť<EFBFBD><C5A5>ʲô
|
|||
|
btnYJFK.onClick.AddListener(() =>
|
|||
|
{
|
|||
|
UIManager.Instance.ShowPanel<IdeaPanel>();
|
|||
|
});
|
|||
|
//btnGFMT.onClick.AddListener(() =>
|
|||
|
//{
|
|||
|
// UIManager.Instance.HidePanel<ExhPanel>();
|
|||
|
//});
|
|||
|
//btnWfSM.onClick.AddListener(() =>
|
|||
|
//{
|
|||
|
// UIManager.Instance.HidePanel<ExhPanel>();
|
|||
|
//});
|
|||
|
}
|
|||
|
|
|||
|
public void OnPointerClick(PointerEventData eventData)
|
|||
|
{
|
|||
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7>ǵ<EFBFBD>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>
|
|||
|
if (eventData.pointerCurrentRaycast.gameObject == gameObject)
|
|||
|
{
|
|||
|
UIManager.Instance.HidePanel<ExhPanel>(false);
|
|||
|
UIManager.Instance.GetPanel<GamePanel>().btnEXH.gameObject.SetActive(true);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|