Exemple #1
0
    IEnumerator GameOverCor(float time, float score, float best, int level, List <LeaderBoardData> datas, bool isComplete)
    {
        yield return(new WaitForSeconds(time));

        if (isComplete)
        {
            if (gameOverComplete.NotNull())
            {
                Hide(hud);
                Show(gameOverComplete);
                gameOverComplete.DataGameOver(score, best, level, datas);
            }
        }
        else
        {
            if (gameOverUnCompleted.NotNull())
            {
                Hide(hud);
                Show(gameOverUnCompleted);
                gameOverUnCompleted.DataGameOver(score, best, level, datas);
            }
        }
    }