fixed bug when timeScale = 0

This commit is contained in:
Novvator 2021-03-02 17:10:12 +00:00
parent af34631ed8
commit f58f89a9ee
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ MonoBehaviour:
- Gamepad
- Keyboard
- Mouse
m_UpdateMode: 2
m_UpdateMode: 1
m_CompensateForScreenOrientation: 1
m_FilterNoiseOnCurrent: 0
m_DefaultDeadzoneMin: 0.125

View File

@ -46,7 +46,7 @@ public class PickUpDisplay : MonoBehaviour
artefactUI.SetActive(true);
Player.GetComponent<PlayerInput>().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<PlayerInput>().enabled = true;
//Time.timeScale = 1.0f;
Time.timeScale = 1.0f;
}
}