31 lines
717 B
C#
31 lines
717 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
|
|
public class RoundManagerView : MonoBehaviour
|
|
{
|
|
[SerializeField] private TMP_Text timerText;
|
|
[SerializeField] private TMP_Text currentRoundText;
|
|
[SerializeField] private TMP_Text ownerScoreText;
|
|
[SerializeField] private TMP_Text enemyScoreText;
|
|
|
|
public void UpdateTimer(float _timer)
|
|
{
|
|
timerText.text = $"{_timer:F0}";
|
|
}
|
|
|
|
public void UpdateCurrentRound(int _round)
|
|
{
|
|
currentRoundText.text = $"Round {_round}";
|
|
}
|
|
|
|
public void UpdateOwnerScore(int _score)
|
|
{
|
|
ownerScoreText.text = _score.ToString();
|
|
}
|
|
|
|
public void UpdateEnemyScore(int _score)
|
|
{
|
|
enemyScoreText.text = _score.ToString();
|
|
}
|
|
}
|