Ejemplo n.º 1
0
        private void UpdateAvailableButtonsNow()
        {
            var hasSavedGame = (m_saveHelper != null) ? m_saveHelper.HasLastSavedGame() : false;

            if (startButton != null)
            {
                startButton.gameObject.SetActive(!hasSavedGame);
            }
            if (continueButton != null)
            {
                continueButton.gameObject.SetActive(hasSavedGame);
            }
            if (startButton != null)
            {
                restartButton.gameObject.SetActive(hasSavedGame);
            }
            if (loadGameButton != null)
            {
                loadGameButton.gameObject.SetActive(hasSavedGame);
            }
            var selectableToFocus = hasSavedGame ? ((continueButton != null) ? continueButton.gameObject : null)
                : ((startButton != null) ? startButton.gameObject : null);

            titleMenuPanel.firstSelected = selectableToFocus;
        }
Ejemplo n.º 2
0
        public void UpdateAvailableButtons()
        {
            var hasSavedGame = (m_saveHelper != null) ? m_saveHelper.HasLastSavedGame() : false;

            startButton.gameObject.SetActive(!hasSavedGame);
            continueButton.gameObject.SetActive(hasSavedGame);
            restartButton.gameObject.SetActive(hasSavedGame);
            var selectableToFocus = hasSavedGame ? continueButton.gameObject : startButton.gameObject;

            titleMenuPanel.firstSelected = selectableToFocus;
        }