18 lines
496 B
C#
18 lines
496 B
C#
using UnityEngine;
|
|
|
|
namespace PashaBibko.PenguinChase.Core
|
|
{
|
|
public static class BootstrapLoader
|
|
{
|
|
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
|
|
private static void LoadBoostrapScene()
|
|
{
|
|
GameObject go = Resources.Load<GameObject>("Bootstrap");
|
|
GameObject instance = Object.Instantiate(go);
|
|
|
|
Object.DontDestroyOnLoad(instance);
|
|
instance.name = "Bootstrap";
|
|
}
|
|
}
|
|
}
|