Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.SceneManagement;
- public class SceneLoader : MonoBehaviour {
- public void LoadNextScene()
- {
- int currentSceneIndex = SceneManager.GetActiveScene().buildIndex;
- SceneManager.LoadScene(currentSceneIndex + 1);
- }
- }
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment                    
                 
                    