private void GameController_GamePaused() { if (gamePausedView.State == VisibilityStates.Hidden) { gamePausedView.ShowView(); } else { gamePausedView.HideView(); } }
//============================================================ // Private Methods: //============================================================ private void HideAllViews() { scoreView.HideView(); livesView.HideView(); gameOverView.HideView(); enterNameView.HideView(); playerNameView.HideView(); acceptNameView.HideView(); gamePausedView.HideView(); }
private void State_EnterPlayerName() { // renable the cursor for clicking Cursor.visible = true; // hide the game over text view gameOverView.HideView(); // show the views responsible for collecting the players name enterNameView.ShowView(); playerNameView.ShowView(); acceptNameView.ShowView(); // start the text capture coroutine so the player can enter their name StartCoroutine(collectInputEnumerator = CollectInputCoroutine()); // add a listener so we know if the button has been clicked playerNameAcceptButton.onClick.AddListener(PlayerNameButtonClicked); }