Added basic lobby
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
namespace PashaBibko.PenguinChase.Core
|
||||
{
|
||||
@@ -7,6 +8,10 @@ namespace PashaBibko.PenguinChase.Core
|
||||
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
|
||||
private static void LoadBoostrapScene()
|
||||
{
|
||||
// Makes sure the game onto the first scene
|
||||
SceneManager.LoadScene(0);
|
||||
|
||||
// Loads the bootstrap object
|
||||
GameObject go = Resources.Load<GameObject>("Bootstrap");
|
||||
GameObject instance = Object.Instantiate(go);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user