Start of integrating models and pre-rendered backgrounds
This commit is contained in:
@@ -6,10 +6,9 @@ namespace Scampz.GameJam
|
||||
{
|
||||
public class BaseSceneManager : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
GameManager.Instance.LoadScene(SceneNames.FirstPreRenderedScene, LoadSceneMode.Additive);
|
||||
GameManager.Instance.LoadScene(SceneNames.SecondPreRenderedScene, LoadSceneMode.Additive);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System.Collections;
|
||||
using Scampz.GameJam.Assets.Scripts;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
|
||||
15
Assets/Scripts/InputManager.cs
Normal file
15
Assets/Scripts/InputManager.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Scampz.GameJam.Assets.Scripts
|
||||
{
|
||||
public class InputManager : MonoBehaviour
|
||||
{
|
||||
public static InputManager Instance { get; private set; }
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
if (Instance == null)
|
||||
Instance = this;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
using Scampz.GameJam.Assets.Scripts;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Scampz.GameJam
|
||||
@@ -14,6 +15,16 @@ namespace Scampz.GameJam
|
||||
animator.SetTrigger("FadeOut");
|
||||
}
|
||||
|
||||
public void EnableControls()
|
||||
{
|
||||
//InputManager.Instance.enabled = true;
|
||||
}
|
||||
|
||||
public void DisableControls()
|
||||
{
|
||||
//InputManager.Instance.enabled = false;
|
||||
}
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
if (Singleton is not null && Singleton != this)
|
||||
|
||||
Reference in New Issue
Block a user