When I click the back button once, the code does not execute, but when i click it 4 times in rapid succession it performs the action, in this case Application.Quit();
Any thoughts?
I really would like to fix this before my release.
Below is the code snippet im using the perform the task.
void Update()
{
if (backAction != null)
{
if (backAction.IsPressed())
{
Debug.Log("BackPressed");
if (navigate)
{
Debug.Log("Navigate");
SceneManager.LoadScene(navigateScene, LoadSceneMode.Single);
}
else
{
Debug.Log("Quit");
Application.Quit();
}
}
}
}