Example #1
0
 public void ShowResultPopup(GameResult gameResult)
 {
     if (gameResult == GameResult.GAME_CLEAR)
     {
         m_resultPopup?.Show(Const.GAME_CLEAR_TEXT);
     }
     else if (gameResult == GameResult.GAME_OVER)
     {
         m_resultPopup?.Show(Const.GAME_OVER_TEXT);
     }
 }
Example #2
0
 public void EndGame(bool bWin)
 {
     if (m_bEnded)
     {
         return;
     }
     m_bEnded         = true;
     m_scoreText.text = "";
     m_resultPopup.Show(m_score);
     m_hudLayer.SetActive(false);
 }
Example #3
0
    IEnumerator ShowResulting()
    {
        SuccessView.SetActive(isSuccess);
        FailedView.SetActive(!isSuccess);
        yield return(new WaitForSeconds(1.0f));

        SuccessEffect.SetActive(isSuccess);
        FailedEffect.SetActive(!isSuccess);
        yield return(new WaitForSeconds(3.0f));

        Popup.Show(isSuccess, score);
    }
Example #4
0
    private void EndGame(bool isWin)
    {
        _result.Show(isWin);

        SoundManager.Instance.Play(isWin? "win":"lose");
    }
 public void ShowResultPopup()
 {
     _resultPopup.Show(true);
 }