public void Activate() { if (!IsActive) { foreach (Obstaculo item in GetComponentsInChildren <Obstaculo>()) { Destroy(item.gameObject); } foreach (Carrossel item in Carrossels) { item.enabled = true; } Gerador.Resume(); Aviao.Restart(); IsActive = true; } }