From f58f89a9ee26f08c503c7a1c342aaf6fe04fc2b8 Mon Sep 17 00:00:00 2001 From: Novvator Date: Tue, 2 Mar 2021 17:10:12 +0000 Subject: [PATCH] fixed bug when timeScale = 0 --- game/Assets/InputSystem.inputsettings.asset | 2 +- game/Assets/Scripts/Artefacts/PickUpDisplay.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/game/Assets/InputSystem.inputsettings.asset b/game/Assets/InputSystem.inputsettings.asset index e28f30f..aa712f1 100644 --- a/game/Assets/InputSystem.inputsettings.asset +++ b/game/Assets/InputSystem.inputsettings.asset @@ -16,7 +16,7 @@ MonoBehaviour: - Gamepad - Keyboard - Mouse - m_UpdateMode: 2 + m_UpdateMode: 1 m_CompensateForScreenOrientation: 1 m_FilterNoiseOnCurrent: 0 m_DefaultDeadzoneMin: 0.125 diff --git a/game/Assets/Scripts/Artefacts/PickUpDisplay.cs b/game/Assets/Scripts/Artefacts/PickUpDisplay.cs index cd8368b..636574c 100644 --- a/game/Assets/Scripts/Artefacts/PickUpDisplay.cs +++ b/game/Assets/Scripts/Artefacts/PickUpDisplay.cs @@ -46,7 +46,7 @@ public class PickUpDisplay : MonoBehaviour artefactUI.SetActive(true); Player.GetComponent().enabled = false; artefactText.text = "You have unlocked " + chosenArtefact.Name + "!"; - //Time.timeScale = 0f; + Time.timeScale = 0f; } public void PopUpOff() @@ -54,6 +54,6 @@ public class PickUpDisplay : MonoBehaviour _paused = false; artefactUI.SetActive(false); Player.GetComponent().enabled = true; - //Time.timeScale = 1.0f; + Time.timeScale = 1.0f; } }