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

23 lines
390 B

using System;
using TMPro;
using Unity.VisualScripting;
using UnityEngine;
public class JeremyState : MonoBehaviour
{
[SerializeField]
private int _state = 0;
private void Awake()
{
}
public void SetState(int newState)
{
_state = newState;
// TODO: change
GetComponentInChildren<TextMeshPro>().text = $"{_state}";
}
}