using Assets.MyGame.Scripts.Net.WebResponses.ChineseChess; using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; public class UIChineseChessWin : SubUIBase { public Button JiXuYouXi; public Button FanHuiDaTing; public TextMeshProUGUI coinCount; public override void Awake() { } 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); }); } }