예제 #1
0
    IEnumerator  desactivationDelay()
    {
        yield return(new WaitForSeconds(5));

        gameObject.SetActive(false);
        ngm.EndGame();
    }
예제 #2
0
    IEnumerator  Delay(int time)
    {
        yield return(new WaitForSeconds(time));

        if (end)
        {
            GameManager.EndGame();
        }
        gameObject.SetActive(false);
    }