I'm relatively new to using Unity, and I'm making a 2D infinite runner, where you have to get a high score by surviving as long as you can. I'm trying to set up a script that adds the score at a constant rate and attach this code to a string that should update the score, but the string remains unchanged. The string uses TextMesh Pro and the String itself says "Score: 0". I'm hoping to find a way to have that 0 constantly increase over time. Code (CSharp): using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class PointsManager : MonoBehaviour { float PlayerScore; public TextMeshProUGUI text; // Update is called once per frame void Update() { PlayerScore += Time.deltaTime; } public void DisplayScore() { text.text = "Score: " + PlayerScore.ToString(); } }