If you do something like:
SceneManager.push(SomeScene)SceneManager.goTo(OtherScene)You will automatically go to that other scene, regardless of if SomeScene is running or not. How can I say: If SomeScene is not popped off, do not go to OtherScene?
Would I do that in the SomeScene for the update method when I listen for player input to hit escape? or is there another way?
SceneManager.push(SomeScene)SceneManager.goTo(OtherScene)You will automatically go to that other scene, regardless of if SomeScene is running or not. How can I say: If SomeScene is not popped off, do not go to OtherScene?
Would I do that in the SomeScene for the update method when I listen for player input to hit escape? or is there another way?