Skip to content

Instantly share code, notes, and snippets.

@cajun-code
Created April 22, 2016 21:05
Show Gist options
  • Save cajun-code/bd75fe1855337d83b5e50e63deac8559 to your computer and use it in GitHub Desktop.
Save cajun-code/bd75fe1855337d83b5e50e63deac8559 to your computer and use it in GitHub Desktop.
Level Manager Unity 5.3.4
using UnityEngine;
using UnityEngine.SceneManagement;
using System.Collections;
public class LevelManager : MonoBehaviour {
public void LoadLevel(string name){
Debug.Log ("New Level load: " + name);
//Application.LoadLevel (name);
SceneManager.LoadScene(name);
}
public void QuitRequest(){
Debug.Log ("Quit requested");
Application.Quit ();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment