// // Use this for initialization void Start() { audioManager = GameObject.FindGameObjectWithTag("music"); am = audioManager.GetComponent <PlayBackgroundMusic>(); if (PlayerPrefs.HasKey("highScore")) { highScoreText.text = "Highest Score: " + PlayerPrefs.GetInt("highScore"); } }
void Awake() { instance = this; DontDestroyOnLoad(gameObject); }