32 lines
849 B
C#
32 lines
849 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
public class Settle : MonoBehaviour
|
|
{
|
|
/// <summary>
|
|
/// 倒计时文本
|
|
/// </summary>
|
|
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 + "";
|
|
}
|
|
}
|