LevelManager.cs 321 B

1234567891011121314151617
  1. using UnityEngine;
  2. using System.Collections;
  3. using UnityEngine.SceneManagement;
  4. public class LevelManager : MonoBehaviour {
  5. public void LoadLevel (string name)
  6. {
  7. Debug.Log("Level load requested for: " +name);
  8. SceneManager.LoadScene(name);
  9. }
  10. public void QuitRequest ()
  11. {
  12. Debug.Log("Quit Request");
  13. }
  14. }