mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 09:32:38 +00:00
add suit check
This commit is contained in:
parent
c043e6a258
commit
053efa8c7e
@ -150,8 +150,9 @@ internal class MultiplayerHUDManager : MonoBehaviour, IAddComponentOnStart
|
|||||||
|
|
||||||
_playerList.gameObject.SetActive(ServerSettingsManager.ShowExtraHUD);
|
_playerList.gameObject.SetActive(ServerSettingsManager.ShowExtraHUD);
|
||||||
|
|
||||||
|
var inSuit = Locator.GetPlayerSuit().IsWearingHelmet();
|
||||||
|
|
||||||
if (OWInput.IsNewlyPressed(InputLibrary.enter, InputMode.Character) && !_writingMessage)
|
if (OWInput.IsNewlyPressed(InputLibrary.enter, InputMode.Character) && !_writingMessage && inSuit)
|
||||||
{
|
{
|
||||||
OWInput.ChangeInputMode(InputMode.KeyboardInput);
|
OWInput.ChangeInputMode(InputMode.KeyboardInput);
|
||||||
_writingMessage = true;
|
_writingMessage = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user