::Can you first test if your GameManager.cs is able to sense that your inputs are being pressed by creating print messages through an if statement for the button inputs?
private void Update()
{
if (Input.GetButtonDown("Map") || Input.GetKeyDown(KeyCode.Escape) || Input.GetButtonDown("Inventory"))
{
print("Input works")
}
}
If input doesn’t work, something is wrong with your inputs, or your GameManager encountered an issue in Awake()
.
If the input is not detected, add a print message to see if everything is loaded in Awake()
of GameManager.cs
private void Awake()
{
SaveData.Instance.Initialize();
if(Instance != null && Instance != this)
{
Destroy(gameObject);
}
else
{
Instance = this;
}
DontDestroyOnLoad(gameObject);
SaveData.Instance.LoadSceneData();
SaveScene();
SaveData.Instance.LoadMapData();
savePoint = FindObjectOfType();
print("Loaded everything");
}