Example #1
0
    private IEnumerator SetGameOverCo()
    {
        player.FreezePlayer();
        isGameOver = true;
        yield return(new WaitForSeconds(delayToShowGameOver));

        ShowUI(gameOverPanel);
    }