You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/Source/Scripts/PowerText.cs

22 lines
432 B
C#

2 months ago
using TMPro;
using UnityEngine;
using static D2D.Utilities.CommonGameplayFacade;
public class PowerText : MonoBehaviour
{
private TextMeshProUGUI textPro;
private void Awake()
{
textPro = GetComponent<TextMeshProUGUI>();
//UpdatePowerText(0);
//_gameProgress.OnLevelUp += UpdatePowerText;
}
private void UpdatePowerText(int level)
{
textPro.text = $"LVL {level}";
}
}