fixed bug when timeScale = 0
This commit is contained in:
parent
af34631ed8
commit
f58f89a9ee
|
@ -16,7 +16,7 @@ MonoBehaviour:
|
||||||
- Gamepad
|
- Gamepad
|
||||||
- Keyboard
|
- Keyboard
|
||||||
- Mouse
|
- Mouse
|
||||||
m_UpdateMode: 2
|
m_UpdateMode: 1
|
||||||
m_CompensateForScreenOrientation: 1
|
m_CompensateForScreenOrientation: 1
|
||||||
m_FilterNoiseOnCurrent: 0
|
m_FilterNoiseOnCurrent: 0
|
||||||
m_DefaultDeadzoneMin: 0.125
|
m_DefaultDeadzoneMin: 0.125
|
||||||
|
|
|
@ -46,7 +46,7 @@ public class PickUpDisplay : MonoBehaviour
|
||||||
artefactUI.SetActive(true);
|
artefactUI.SetActive(true);
|
||||||
Player.GetComponent<PlayerInput>().enabled = false;
|
Player.GetComponent<PlayerInput>().enabled = false;
|
||||||
artefactText.text = "You have unlocked " + chosenArtefact.Name + "!";
|
artefactText.text = "You have unlocked " + chosenArtefact.Name + "!";
|
||||||
//Time.timeScale = 0f;
|
Time.timeScale = 0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PopUpOff()
|
public void PopUpOff()
|
||||||
|
@ -54,6 +54,6 @@ public class PickUpDisplay : MonoBehaviour
|
||||||
_paused = false;
|
_paused = false;
|
||||||
artefactUI.SetActive(false);
|
artefactUI.SetActive(false);
|
||||||
Player.GetComponent<PlayerInput>().enabled = true;
|
Player.GetComponent<PlayerInput>().enabled = true;
|
||||||
//Time.timeScale = 1.0f;
|
Time.timeScale = 1.0f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue