IEnumerator desactivationDelay() { yield return(new WaitForSeconds(5)); gameObject.SetActive(false); ngm.EndGame(); }
IEnumerator Delay(int time) { yield return(new WaitForSeconds(time)); if (end) { GameManager.EndGame(); } gameObject.SetActive(false); }