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); } }
public void EndGame(bool bWin) { if (m_bEnded) { return; } m_bEnded = true; m_scoreText.text = ""; m_resultPopup.Show(m_score); m_hudLayer.SetActive(false); }
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); }
private void EndGame(bool isWin) { _result.Show(isWin); SoundManager.Instance.Play(isWin? "win":"lose"); }
public void ShowResultPopup() { _resultPopup.Show(true); }