Files
5.24BuYu/Assets/MyGame/aa/UI/Game/ChineseChess/UIChineseChessDefeated.cs
T
2026-02-26 11:05:56 +08:00

45 lines
1.1 KiB
C#

using Assets.MyGame.Scripts.Net.WebResponses.ChineseChess;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class UIChineseChessDefeated : SubUIBase
{
public Button JiXuYouXi;
public Button FanHuiDaTing;
public TextMeshProUGUI coinCount;
public override void Awake()
{
}
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
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);
});
}
}