Fix loading base and first pre-rendered scene from title screen

This commit is contained in:
2022-08-13 17:56:11 -07:00
parent 0514822669
commit 1071a1347e
3 changed files with 73 additions and 46 deletions

View File

@@ -0,0 +1,15 @@
using Scampz.GameJam.Assets.Scripts;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace Scampz.GameJam
{
public class BaseSceneManager : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
GameManager.Instance.LoadScene(SceneNames.FirstPreRenderedScene, LoadSceneMode.Additive);
}
}
}

View File

@@ -11,7 +11,6 @@ namespace Scampz.GameJam
if (Input.GetButtonDown(InputOptions.Submit))
{
GameManager.Instance.LoadScene(SceneNames.BaseScene, LoadSceneMode.Single);
GameManager.Instance.LoadScene(SceneNames.FirstPreRenderedScene, LoadSceneMode.Additive);
}
}
}