Ejemplo n.º 1
0
 private void GameController_GamePaused()
 {
     if (gamePausedView.State == VisibilityStates.Hidden)
     {
         gamePausedView.ShowView();
     }
     else
     {
         gamePausedView.HideView();
     }
 }
Ejemplo n.º 2
0
    //============================================================
    // Private Methods:
    //============================================================

    private void HideAllViews()
    {
        scoreView.HideView();
        livesView.HideView();
        gameOverView.HideView();
        enterNameView.HideView();
        playerNameView.HideView();
        acceptNameView.HideView();
        gamePausedView.HideView();
    }
Ejemplo n.º 3
0
    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);
    }