Example #1
0
 void OnGUI()
 {
     //		state = state.renderGUI(new Vector2(pageShift,0),_guiStyle);
     MenuState tmp_state;
     //renders shifted menu
     if (state != oldState) offset++;
     oldState = state;
     //		oldState = oldState.renderGUI(new Vector2(pageShift - Screen.width,0),_guiStyle);
     tmp_state = oldState.renderGUI(new Vector2(pageShift - Screen.width,0),_guiSkin);
     if (tmp_state != MenuManager.none) state = tmp_state;
 }