private void RejillaOrden() { Refresh(); RejillaControl rc = grabbed.GetComponent <RejillaControl>(); texto.GetComponent <Text>().text = $"Nombre de la rejilla: {rc.rejilla.nombre}"; textoSac.Add(GameObject.Instantiate(texto, this.gameObject.transform)); textoSac.Add(GameObject.Instantiate(texto, this.gameObject.transform)); textoSac.Add(GameObject.Instantiate(texto, this.gameObject.transform)); textoSac.Add(GameObject.Instantiate(texto, this.gameObject.transform)); textoSac[0].GetComponent <Text>().text = $"CFM de la rejilla : {(rc.rejilla.cfm <= 0?rc.GetAmbiente().GetDefaultCFM():rc.rejilla.cfm)}"; textoSac[1].GetComponent <Text>().text = $"CFM total en tramo : {rc.CFMreal()}"; textoSac[2].GetComponent <Text>().text = $"CFM del ambiente : {rc.GetAmbiente().GetCFMTotal()}"; textoSac[3].GetComponent <Text>().text = $"CFM disponible : {rc.GetAmbiente().GetCFMDisponible()}"; }
public void AddRejilla(RejillaControl rej) { this.rejillas.Add(rej); }