示例#1
0
        void UIView()
        {
            switch (_levelProgress.GameState)
            {
            case (GameState.Menu):
                _uiData.UIScreenInGame.SetActive(false);
                _uiDataStart.UIGameOver.SetActive(false);
                _uiDataStart.UIGameStart.SetActive(true);
                _uiDataStart.UIInGame.SetActive(false);
                break;

            case (GameState.Game):
                _uiData.UIScreenInGame.SetActive(true);
                _uiDataStart.UIGameStart.SetActive(false);
                _uiDataStart.UIInGame.SetActive(true);
                _uiData.UIScreenView(false);
                break;

            case (GameState.Pause):
                _uiData.UIScreenInGame.SetActive(false);
                _uiDataStart.UIInGame.SetActive(false);
                _uiData.UIScreenView(true);
                break;

            case (GameState.GameOver):
                _uiDataStart.UIInGame.SetActive(false);
                _uiData.UIScreenInGame.SetActive(false);
                _uiDataStart.UIGameOver.SetActive(true);
                break;

            case (GameState.Win):
                break;
            }
        }