i try this, but its not working
JavaScript:
function test() {
console.log("pause")
Eli.PauseGame.pauseGame()
var delayInMilliseconds = 2000;
setTimeout(function() {
Eli.PauseGame.setState(false)
console.log("resume")
}, delayInMilliseconds);
}