using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; public class Settle : MonoBehaviour { /// /// 倒计时文本 /// public TextMeshProUGUI LessTimeText; public TextMeshProUGUI blueText; public TextMeshProUGUI redText; public TextMeshProUGUI redRoundText; public TextMeshProUGUI blueRoundText; public void Update() { if(GameManager.Ins==null||GameManager.Ins.gameState!= GameState.Playing) return; LessTimeText.text = GameManager.Ins.GetRoundLessTimeStr(); blueText.text = GameManager.Ins.BlueRoundScore + ""; redText.text = GameManager.Ins.RedRoundScore + ""; redRoundText.text = GameManager.Ins.RedScore + ""; blueRoundText.text = GameManager.Ins.BlueScore + ""; } }