23 lines
640 B
C#
23 lines
640 B
C#
using UnityEngine.SceneManagement;
|
|
using UnityEngine;
|
|
|
|
namespace PashaBibko.PenguinChase.Core
|
|
{
|
|
public static class BootstrapLoader
|
|
{
|
|
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
|
|
private static void LoadBoostrapScene()
|
|
{
|
|
#if UNITY_EDITOR
|
|
// Stops loading in on the bootstrap scene
|
|
if (SceneManager.GetActiveScene().name == "Bootstrap")
|
|
{
|
|
SceneManager.LoadScene("MainMenu", LoadSceneMode.Single);
|
|
}
|
|
#endif // UNITY_EDITOR
|
|
|
|
SceneManager.LoadScene("Bootstrap", LoadSceneMode.Additive);
|
|
}
|
|
}
|
|
}
|