Created
April 22, 2016 21:05
-
-
Save cajun-code/bd75fe1855337d83b5e50e63deac8559 to your computer and use it in GitHub Desktop.
Level Manager Unity 5.3.4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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