象棋基础

This commit is contained in:
2026-02-26 11:05:56 +08:00
parent e68fd61b86
commit 3dd5a9bf4e
57 changed files with 18347 additions and 516 deletions
@@ -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);
});
}
}