Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }