using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class BestScore : MonoBehaviour
{
// Start is called before the first frame update
private void Awake()
{
int bestScore = PlayerPrefs.GetInt("Best Score: ", Score.bestScore);
}
private void Start()
{
GetComponent<Text>().text = "Best Score: " + Score.bestScore;
}
private void Update()
{
PlayerPrefs.SetInt ("Best Score: ", Score.bestScore);
}
}