Exemplo n.º 1
0
    IEnumerator Lose()
    {
        board.isLose = true;
        if (Scores > minRecord)
        {
            yield return(new WaitForSeconds(0.5f));

            AdsController.ShowAdvertisment();
            PlayerPrefs.SetInt("NewRecord", Scores);
            PlayerPrefs.Save();
            SceneManager.LoadScene(2);
        }
        else
        {
            AdsController.ShowAdvertisment();
            losePanel.SetActive(true);
            losePanelScoresText.text = scoresText.text;
            uIPanels.SetActive(false);
            yield return(new WaitForSeconds(0.7f));
        }
    }