Added UI and more
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user