Advertisement
Guest User

Untitled

a guest
Jul 17th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.SceneManagement;
  5.  
  6. public class SceneLoader : MonoBehaviour {
  7.  
  8.             public void LoadNextScene()
  9.         {
  10.                 int currentSceneIndex = SceneManager.GetActiveScene().buildIndex;
  11.                 SceneManager.LoadScene(currentSceneIndex + 1);
  12.             }
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement