Added game state and network client
This commit is contained in:
17
Assets/Scripts/BootstrapLoader.cs
Normal file
17
Assets/Scripts/BootstrapLoader.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user