private void ShowUI() { //Hide all the UI elements HideAll(); //Show the UIPanel //Show the small exit button smallExitBtn.Show(); uiPanel.Show(); //Send message that the ui is changed MainEvent mei = new MainEvent(); mei.startBtnPressed = true; mei.FireEvent(); }
private void ShowMenu() { //Send message that the ui is changed MainEvent mei = new MainEvent(); mei.menuBtnPressed = true; mei.FireEvent(); //Hide all the UI elements HideAll(); //Show the buttons and menu startBtn.Show(); creditsBtn.Show(); exitBtn.Show(); menuPanel.Show(); background.Show(); }