unity-atoms/Examples/Assets/InfiniteWaves/UI/WaveCountText.cs
2020-03-20 01:29:39 +01:00

14 lines
325 B
C#

using UnityEngine;
using UnityEngine.UI;
namespace UnityAtoms.Examples
{
/// <summary>
/// Sets the text for the Wave count UI.
/// </summary>
public class WaveCountText : MonoBehaviour
{
public void AdjustText(int waveCount) => GetComponent<Text>().text = $"Wave count: {waveCount}";
}
}