public static void drawCommonMainMenuItems() { GUILayout.Space(20); CommonMenuUtilities.drawButton("Options", CommonMenuUtilities.displayOptions); GUILayout.Space(20); CommonMenuUtilities.drawButton("Exit Game", CommonMenuUtilities.exitGame); }
public static void drawOptionsMenu(GUISkin CustomGuiSkin) { CommonMenuUtilities.drawCenterBoxHeader(CustomGuiSkin, "OPTIONS", CommonMenuUtilities._mainMenuWidth, CommonMenuUtilities._mainMenuHeight); CommonMenuUtilities.drawButton("Back", exitOptions); CommonMenuUtilities.endCenterBox(); }
private void _drawPauseMenu() { if (CommonMenuUtilities.showOptions) { CommonMenuUtilities.drawOptionsMenu(GUI.skin); return; } CommonMenuUtilities.drawMainMenuHeader(GUI.skin); CommonMenuUtilities.drawButton("Resume Game", unpauseGame); CommonMenuUtilities.drawCommonMainMenuItems(); CommonMenuUtilities.endCenterBox(); }
void OnGUI() { GUI.skin = this.CustomGUISkin; if (CommonMenuUtilities.showOptions) { CommonMenuUtilities.drawOptionsMenu(GUI.skin); return; } CommonMenuUtilities.drawMainMenuHeader(GUI.skin); CommonMenuUtilities.drawButton("Start Game", startGame); CommonMenuUtilities.drawCommonMainMenuItems(); CommonMenuUtilities.endCenterBox(); }