30 lines
752 B
C#
30 lines
752 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
using BrewMonster.PerfectWorld.Scripts.Utility.ChatFilter;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
namespace BrewMonster
|
|
{
|
|
public class BootstrapSceneController : MonoBehaviour
|
|
{
|
|
[SerializeField] private string _nextSceneName;
|
|
|
|
IEnumerator Start()
|
|
{
|
|
ChatFilterService.Init();
|
|
// Load the next scene after 1 second
|
|
yield return new WaitForSeconds(1f);
|
|
LoadNextScene();
|
|
}
|
|
|
|
private void LoadNextScene()
|
|
{
|
|
#if TESTFAST
|
|
SceneManager.LoadSceneAsync(_nextSceneName,LoadSceneMode.Additive);
|
|
#else
|
|
SceneManager.LoadScene(_nextSceneName);
|
|
#endif
|
|
}
|
|
}
|
|
}
|