Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using UnityEngine.UI;
- using System.Collections;
- using UnityEngine.SceneManagement;
- public class LevelManager : MonoBehaviour {
- public Text highScore;
- void Start(){
- if (SceneManager.GetActiveScene ().name != "Start_Menu") {
- highScore.text = "Score: " + PlayerPrefs.GetInt ("High Score").ToString ();
- }
- }
- public void LoadLevel (string name){
- SceneManager.LoadScene(name);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement