Files
MouseTrailCollector/Assets/Stript/InGame/RoundProgressHUD.cs
T
2026-11-25 21:35:17 +08:00

24 lines
600 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using UnityEngine;
using TMPro;
// 遊戲中顯示目前回合進度 (自動配置 : 第 n / 85 回合,不顯示條件 ; 自由模式 : 已記錄幾回合 ; 測試模式不顯示)
// 掛在 PlayerRig,Text 放在 HUD 上
public class RoundProgressHUD : MonoBehaviour
{
[Header("UI 參照")]
[Tooltip("Text (TMP)")]
public TextMeshProUGUI progressText;
private GameSettings settings;
void Start()
{
settings = GameSettings.Load();
}
void Update()
{
if (progressText != null) progressText.text = SessionPlan.GetProgressText(settings);
}
}