|
@@ -250,6 +250,9 @@ public class GCJKLayer : YZTRootLayer
|
|
|
|
|
|
public GameObject loading;
|
|
|
|
|
|
+ public Button buyuanBtn;
|
|
|
+ public Button taokouBtn;
|
|
|
+
|
|
|
private void Awake()
|
|
|
{
|
|
|
_Instance = this;
|
|
@@ -258,6 +261,20 @@ public class GCJKLayer : YZTRootLayer
|
|
|
_shuiWeiHistoryPanel = this.transform.Find("Main/ShuiWeiHistoryPanel").GetComponent<ShuiWeiHistoryPanel>();
|
|
|
_shuiWeiHistoryPanel.Init();
|
|
|
_shuiWeiHistoryPanel.gameObject.SetActive(false);
|
|
|
+
|
|
|
+ buyuanBtn.onClick.AddListener(() =>
|
|
|
+ {
|
|
|
+ buyuanBtn.GetComponent<CanvasGroup>().alpha = 1f;
|
|
|
+ taokouBtn.GetComponent<CanvasGroup>().alpha = 0.5f;
|
|
|
+ SetCurrentDataToPanel(0);
|
|
|
+ });
|
|
|
+
|
|
|
+ taokouBtn.onClick.AddListener(() =>
|
|
|
+ {
|
|
|
+ buyuanBtn.GetComponent<CanvasGroup>().alpha = 0.5f;
|
|
|
+ taokouBtn.GetComponent<CanvasGroup>().alpha = 1f;
|
|
|
+ SetCurrentDataToPanel(1);
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
private async void OnEnable()
|