bug fix in InputSettings UpdateMode
This commit is contained in:
parent
f58f89a9ee
commit
e79053ebb5
|
@ -16,7 +16,7 @@ MonoBehaviour:
|
||||||
- Gamepad
|
- Gamepad
|
||||||
- Keyboard
|
- Keyboard
|
||||||
- Mouse
|
- Mouse
|
||||||
m_UpdateMode: 1
|
m_UpdateMode: 2
|
||||||
m_CompensateForScreenOrientation: 1
|
m_CompensateForScreenOrientation: 1
|
||||||
m_FilterNoiseOnCurrent: 0
|
m_FilterNoiseOnCurrent: 0
|
||||||
m_DefaultDeadzoneMin: 0.125
|
m_DefaultDeadzoneMin: 0.125
|
||||||
|
|
|
@ -1438,6 +1438,7 @@ MonoBehaviour:
|
||||||
Player: {fileID: 429551810}
|
Player: {fileID: 429551810}
|
||||||
artefactText: {fileID: 59318657}
|
artefactText: {fileID: 59318657}
|
||||||
Artefacts: {fileID: 1112305613}
|
Artefacts: {fileID: 1112305613}
|
||||||
|
inputSettings: {fileID: 11400000, guid: 87faf39b6f22e524984c1680a88045ac, type: 2}
|
||||||
--- !u!114 &2070784759
|
--- !u!114 &2070784759
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
@ -15,6 +15,7 @@ public class PickUpDisplay : MonoBehaviour
|
||||||
[SerializeField] private GameObject Player;
|
[SerializeField] private GameObject Player;
|
||||||
[SerializeField] private Text artefactText;
|
[SerializeField] private Text artefactText;
|
||||||
[SerializeField] private GameObject Artefacts;
|
[SerializeField] private GameObject Artefacts;
|
||||||
|
[SerializeField] private InputSettings inputSettings;
|
||||||
|
|
||||||
private Artefact chosenArtefact;
|
private Artefact chosenArtefact;
|
||||||
private static List<Artefact> completeList = new List<Artefact>();
|
private static List<Artefact> completeList = new List<Artefact>();
|
||||||
|
@ -42,10 +43,12 @@ public class PickUpDisplay : MonoBehaviour
|
||||||
|
|
||||||
public void PopUpOn()
|
public void PopUpOn()
|
||||||
{
|
{
|
||||||
|
;
|
||||||
_paused = true;
|
_paused = true;
|
||||||
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 + "!";
|
||||||
|
inputSettings.updateMode = (InputSettings.UpdateMode)1;
|
||||||
Time.timeScale = 0f;
|
Time.timeScale = 0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,6 +56,7 @@ public class PickUpDisplay : MonoBehaviour
|
||||||
{
|
{
|
||||||
_paused = false;
|
_paused = false;
|
||||||
artefactUI.SetActive(false);
|
artefactUI.SetActive(false);
|
||||||
|
inputSettings.updateMode = (InputSettings.UpdateMode)2;
|
||||||
Player.GetComponent<PlayerInput>().enabled = true;
|
Player.GetComponent<PlayerInput>().enabled = true;
|
||||||
Time.timeScale = 1.0f;
|
Time.timeScale = 1.0f;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue