Beispiel #1
0
    public void AdComebackClose()
    {
        StopCoroutine(countdownCoroutine);

        reStartPannel.SetActive(true);
        restart.RestartOpen();
        adComebackPannel.SetActive(false);
    }
Beispiel #2
0
    public void GameOver()
    {
        if (gameOverPannel.activeSelf)
        {
            return;
        }

        gameOverPannel.SetActive(true);
        googleSheetRanking.SetScore((int)Time.instance.GetTime());

        Time.instance.TimePause();
        if (!isGameover)
        {
            adPannel.SetActive(true);
            adComeback.AdComebackOpen();
        }
        else
        {
            reStartPannel.SetActive(true);
            restart.RestartOpen();
        }
        isGameover = true;
    }