象棋基础
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using System.Collections;
|
||||
using Assets.MyGame.Scripts.Net.WebResponses.ChineseChess;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
@@ -7,6 +9,7 @@ public class UIChineseChessDefeated : SubUIBase
|
||||
{
|
||||
public Button JiXuYouXi;
|
||||
public Button FanHuiDaTing;
|
||||
public TextMeshProUGUI coinCount;
|
||||
public override void Awake()
|
||||
{
|
||||
|
||||
@@ -22,4 +25,20 @@ public class UIChineseChessDefeated : SubUIBase
|
||||
{
|
||||
|
||||
}
|
||||
protected override void OnShow(object args = null)
|
||||
{
|
||||
base.OnShow(args);
|
||||
coinCount.text = "-" + ((ChineseChessMainPanel)uIManager.parentUIBase).roomData.gold;
|
||||
JiXuYouXi.onClick.RemoveAllListeners();
|
||||
JiXuYouXi.onClick.AddListener(() =>
|
||||
{
|
||||
uIManager.CloseAll();
|
||||
WebSocketSendList.GetRoomListChineseChess(1);
|
||||
});
|
||||
FanHuiDaTing.onClick.RemoveAllListeners();
|
||||
FanHuiDaTing.onClick.AddListener(() =>
|
||||
{
|
||||
UIManager.Instance.Close(UIPanel.MainGamePanelZGXQ);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user