Exemplo n.º 1
0
    IEnumerator StartFading()
    {
        yield return(new WaitForSeconds(1.0f));

        blinker.fadeOut();

        if (PlayerPrefs.GetInt("hertz", 0) > 0)
        {
            respawnObject.SetActive(true);
            respawn.begin();
            respawnFade.start();
        }
    }