public bool OnEnter() { var parser = new StateParser(); state = parser.ParseState("data/pause.xml"); state.Callbacks.Add(null);//empty state.Callbacks.Add(ToMenuState); state.Callbacks.Add(Resume); SetCallBacks(); return(true); }
public bool OnEnter() { var parser = new StateParser(); state = parser.ParseState("data/gameover.xml"); state.Callbacks.Add(null); state.Callbacks.Add(ToMenuState); state.Callbacks.Add(Restart); SetCallBacks(); return(true); }
public bool OnEnter() { // parse data var parser = new StateParser(); state = parser.ParseState("data/menu.xml"); // callbacks state.Callbacks.Add(null); state.Callbacks.Add(ToPlayState); state.Callbacks.Add(ExitGame); // callbacks SetCallBacks(); return(true); }