|
@@ -283,19 +283,22 @@ public class GCJKLayer : YZTRootLayer
|
|
|
_shuiWeiHistoryPanel.Init();
|
|
|
_shuiWeiHistoryPanel.gameObject.SetActive(false);
|
|
|
|
|
|
- buyuanBtn.onClick.AddListener(() =>
|
|
|
- {
|
|
|
- buyuanBtn.GetComponent<CanvasGroup>().alpha = 1f;
|
|
|
- taokouBtn.GetComponent<CanvasGroup>().alpha = 0.5f;
|
|
|
- SetCurrentDataToPanel(0);
|
|
|
- });
|
|
|
+ buyuanBtn.onClick.AddListener(OnBuYuanClick);
|
|
|
|
|
|
- taokouBtn.onClick.AddListener(() =>
|
|
|
- {
|
|
|
- buyuanBtn.GetComponent<CanvasGroup>().alpha = 0.5f;
|
|
|
- taokouBtn.GetComponent<CanvasGroup>().alpha = 1f;
|
|
|
- SetCurrentDataToPanel(1);
|
|
|
- });
|
|
|
+ taokouBtn.onClick.AddListener(OnTaoKouClick);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void OnBuYuanClick() {
|
|
|
+ buyuanBtn.GetComponent<CanvasGroup>().alpha = 1f;
|
|
|
+ taokouBtn.GetComponent<CanvasGroup>().alpha = 0.5f;
|
|
|
+ SetCurrentDataToPanel(0);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void OnTaoKouClick()
|
|
|
+ {
|
|
|
+ buyuanBtn.GetComponent<CanvasGroup>().alpha = 0.5f;
|
|
|
+ taokouBtn.GetComponent<CanvasGroup>().alpha = 1f;
|
|
|
+ SetCurrentDataToPanel(1);
|
|
|
}
|
|
|
|
|
|
private async void OnEnable()
|