mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-27 00:40:12 +00:00
cache
This commit is contained in:
parent
e359a907df
commit
1f79fd41d2
@ -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()
|
||||||
{
|
{
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user