UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"display the number of enemies in my game in text mesh gui"
public class EnemiesTextController : MonoBehaviour { [SerializeField] TextMeshProUGUI DisplayedText; public static int Enemies; void Awake() { DisplayedText.text = Enemies.ToString(); } void Update() { DisplayedText.text = Enemies.ToString(); } }