karen_constantine

Untitled

Apr 10th, 2023
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. using UnityEngine;
  2. using UnityEngine.SceneManagement;
  3.  
  4. public class LevelManager : MonoBehaviour
  5. {
  6. public void LoadNextLevel()
  7. {
  8. SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
  9. }
  10. }
  11.  
Advertisement
Add Comment
Please, Sign In to add comment