void Update() { tiempo += Time.deltaTime; if (municion != 0) { sinMunicion = " "; } if (tiempo > 1.5f) { TSinMunicion.color = Color.red; if (tiempo > 3) { TSinMunicion.color = Color.white; tiempo = 0; } } TSinMunicion.text = sinMunicion; TMunicion.text = municion.ToString() + " Energias"; enemigos = GameObject.FindGameObjectsWithTag("Enemy"); TNumEnemigos.text = enemigos.Length.ToString() + " Enemigos"; tiempoFrameTimeScale = Time.deltaTime * escalaDeTiempo; tiempoMostrarSegundos += tiempoFrameTimeScale; ActualizarReloj(tiempoMostrarSegundos); TPuntaje.text = puntaje.ToString() + " Puntos"; if (enemigos.Length == 0) { if (generarMas.numVecesGenerar > 2) { generarMas.minimo += 5; generarMas.maximo += 5; generarMas.numVecesGenerar = 0; Debug.Log("Se generaron mas"); } generarMas.Generar(); } }