First version of UI consumed from API
This commit is contained in:
18
Assets/API/FurnitureSceneLoader.cs
Normal file
18
Assets/API/FurnitureSceneLoader.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user