Unity Game Session MVP
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
namespace BrewMonster
|
||||
{
|
||||
public class BoostrapSceneController : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private string _nextSceneName;
|
||||
|
||||
IEnumerator Start()
|
||||
{
|
||||
// Load the next scene after 1 second
|
||||
yield return new WaitForSeconds(1f);
|
||||
LoadNextScene();
|
||||
}
|
||||
|
||||
private void LoadNextScene()
|
||||
{
|
||||
SceneManager.LoadScene(_nextSceneName);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user