using UnityEngine; using UnityEngine.UI; public class endingScore : MonoBehaviour { // Start is called before the first frame update void Start() { GetComponent().text = "score: " + ScoreCounter.scoreAmount.ToString(); } }