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.
22 lines
432 B
C#
22 lines
432 B
C#
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}";
|
|
}
|
|
} |