SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3. using System.Collections;
  4. using UnityEngine.SceneManagement;
  5. public class LevelManager : MonoBehaviour {
  6.     public Text highScore;
  7.     void Start(){
  8.         if (SceneManager.GetActiveScene ().name != "Start_Menu") {
  9.             highScore.text = "Score: " + PlayerPrefs.GetInt ("High Score").ToString ();
  10.         }
  11.     }
  12.     public void LoadLevel (string name){
  13.         SceneManager.LoadScene(name);
  14.     }
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top