2025-11-18 19:22:47 +08:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
2025-11-27 00:48:12 +08:00
|
|
|
using TMPro;
|
2025-11-18 19:22:47 +08:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class TurnUIManager : MonoBehaviour
|
|
|
|
|
{
|
2025-11-23 16:46:08 +08:00
|
|
|
[SerializeField] private RectTransform inEnemyTurnTooltip;
|
2025-11-27 00:48:12 +08:00
|
|
|
private TMP_Text cardDeckNumberText;
|
|
|
|
|
private TMP_Text dropPileNumberText;
|
2025-11-18 22:26:13 +08:00
|
|
|
|
2025-11-23 16:46:08 +08:00
|
|
|
public void OnButtonDownEndTurn() => TurnManagerEvent.CallTurnManagerEndSelfTurn();
|
|
|
|
|
|
|
|
|
|
public void EnterEnemyTurn() => inEnemyTurnTooltip.gameObject.SetActive(true);
|
2025-11-24 00:01:03 +08:00
|
|
|
|
|
|
|
|
public void ExitEnemyTurn() => inEnemyTurnTooltip.gameObject.SetActive(false);
|
2025-11-27 00:48:12 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
public void UpdateUI_SetCardDeckNumberU(Transform cardDeckContainer, int deckNumber)
|
|
|
|
|
{
|
|
|
|
|
if (!cardDeckNumberText) cardDeckNumberText = cardDeckContainer.GetChild(0).GetChild(1).GetComponent<TMP_Text>();
|
|
|
|
|
cardDeckNumberText.text = deckNumber.ToString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void UpdateUI_SetDropCardNumberU(Transform dropPileContainer, int pileNumber)
|
|
|
|
|
{
|
|
|
|
|
print("hello");
|
|
|
|
|
if (!dropPileNumberText) dropPileNumberText = dropPileContainer.GetChild(0).GetChild(1).GetComponent<TMP_Text>();
|
|
|
|
|
dropPileNumberText.text = pileNumber.ToString();
|
|
|
|
|
}
|
2025-11-23 16:46:08 +08:00
|
|
|
}
|