19 lines
		
	
	
		
			420 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			420 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| using UnityEngine;
 | |
| using UnityEngine.SceneManagement;
 | |
| 
 | |
| public class FurnitureSceneLoader : MonoBehaviour
 | |
| {
 | |
|     public void LoadSceneByName(string sceneName)
 | |
|     {
 | |
|         SceneManager.LoadScene(sceneName);
 | |
|     }
 | |
| 
 | |
|     // También puedes usar índice si prefieres:
 | |
|     public void LoadSceneByIndex(int index)
 | |
|     {
 | |
|         SceneManager.LoadScene(index);
 | |
|     }
 | |
| }
 | 
