I'm trying to get the name of the current state that I am in. getCurrentState() returns a whole lot of information, including but not limited to the specific state name.
How do I just return the current state (i.e. 'myCurrentState')?
var myCurrentState = {
preload: function () {
},
create: function () {
game.stage.backgroundColor = '#cce5ff';
var test = game.state.getCurrentState();
console.log(test); //logs out way too much info
}
};