quantum-space-buddies/QSB/Inputs/QSBInputManager.cs

16 lines
372 B
C#
Raw Normal View History

2022-02-01 08:58:52 +00:00
using QSB.Utility;
using UnityEngine;
2020-11-11 08:31:20 +00:00
2022-03-03 03:46:33 +00:00
namespace QSB.Inputs;
public class QSBInputManager : MonoBehaviour, IAddComponentOnStart
2020-11-11 08:31:20 +00:00
{
2022-03-03 03:46:33 +00:00
public static QSBInputManager Instance { get; private set; }
2021-06-11 13:34:27 +00:00
2022-03-03 03:46:33 +00:00
public void Start()
=> Instance = this;
2021-06-11 13:34:27 +00:00
2022-03-03 03:46:33 +00:00
public bool InputsEnabled { get; private set; } = true;
2022-03-03 03:46:33 +00:00
public void SetInputsEnabled(bool enabled) => InputsEnabled = enabled;
2020-12-03 08:28:05 +00:00
}