18 lines
518 B
C#
18 lines
518 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using TMPro;
|
|
|
|
public class InGameStatsController : MonoBehaviour
|
|
{
|
|
[SerializeField] private TMP_Text livesRemainingText;
|
|
[SerializeField] private TMP_Text currentWaveText;
|
|
public Transform PlayerStatsParent;
|
|
public InGameStats InGameStatsPrefab;
|
|
|
|
public void SetData(int livesRemaining, int currentWave)
|
|
{
|
|
livesRemainingText.SetText($"Lives Remaining: {livesRemaining}");
|
|
currentWaveText.SetText($"Current Wave: {currentWave}");
|
|
}
|
|
}
|