Cease v0.5
This commit is contained in:
@@ -1,14 +1,24 @@
|
||||
using Scampz.GameJam.Assets.Scripts;
|
||||
using UnityEngine;
|
||||
using UnityEngine.InputSystem;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
namespace Scampz.GameJam
|
||||
{
|
||||
public class TitleScreen : MonoBehaviour
|
||||
{
|
||||
private InputAction confirmAction;
|
||||
|
||||
void Start()
|
||||
{
|
||||
confirmAction = new InputAction("confirm", binding: "<Keyboard>/x");
|
||||
confirmAction.AddBinding("<GamePad>/buttonSouth");
|
||||
confirmAction.Enable();
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (Input.GetButton(InputOptions.Submit))
|
||||
if (confirmAction.triggered)
|
||||
GameManager.Instance.LoadScene(SceneNames.WorldMap, LoadSceneMode.Single);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user