NullReferenceException: Object reference not set to an instance of an object
UIGameOver.Start () (at Assets/Scripts/UIGameOver.cs:18)
{
[SerializeField] TextMeshProUGUI scoreText;
ScoreKeeper scoreKeeper;
void Awake()
{
scoreKeeper = FindObjectOfType<ScoreKeeper>();
}
void Start()
{
scoreText.text = "You Scored:\n" + scoreKeeper.GetCurrentScore();
}
}