This commit is contained in:
Mister_Nebula 2020-08-23 18:46:57 +01:00
parent e359a907df
commit 1f79fd41d2
2 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,7 @@ namespace QSB
public static bool DebugMode { get; private set; } public static bool DebugMode { get; private set; }
public static AssetBundle NetworkAssetBundle { get; private set; } public static AssetBundle NetworkAssetBundle { get; private set; }
public static bool HasWokenUp { get; set; } public static bool HasWokenUp { get; set; }
public static InputMode CachedInputMode;
private void Awake() private void Awake()
{ {

View File

@ -166,13 +166,14 @@ namespace QSB.TimeSync
private void DisableInput() private void DisableInput()
{ {
QSB.CachedInputMode = OWInput.GetInputMode();
OWInput.ChangeInputMode(InputMode.None); OWInput.ChangeInputMode(InputMode.None);
} }
private void EnableInput() private void EnableInput()
{ {
QSB.HasWokenUp = true; QSB.HasWokenUp = true;
OWInput.ChangeInputMode(InputMode.Character); OWInput.ChangeInputMode(QSB.CachedInputMode);
} }
private void Update() private void Update()