// Jimmy Vegas Unity Tutorials // This script is to save your score using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class LastScoreDisplay : MonoBehaviour { public GameObject lastScore; public int lastScoreValue; void Start() { lastScoreValue = PlayerPrefs.GetInt("LastScore"); lastScore.GetComponent().text = "LAST SCORE: " + lastScoreValue; } }