Files
RatStabber/Assets/Scripts C#/UI overlay/WaveIndicator.cs
2024-10-25 17:33:47 -07:00

18 lines
451 B
C#

using UnityEngine;
public class WaveIndicator : MonoBehaviour
{
GameState gameState;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
gameState = GameObject.FindGameObjectWithTag("GameController").GetComponent<GameState>();
}
// Update is called once per frame
void Update()
{
GetComponent<TMPro.TMP_Text>().text = "Wave: "+gameState.wave;
}
}