Exemplo n.º 1
0
 setState(mrpgState newState)
 {
     stateStack.Peek().onExit();
     stateStack.Pop();
     stateStack.Push(newState);
     stateStack.Peek().onEnter();
 }
Exemplo n.º 2
0
 pushState(mrpgState newState)
 {
     stateStack.Push(newState);
     stateStack.Peek().onEnter();
 }