public virtual void activar(int v, BotonConstruir botonConstruir, int dinero) { if (!Hijos[v].activeSelf) { botonPadre = botonConstruir; Eleccion = v; Activo = true; precio = dinero; } }
public void Awake() { valor = nombre.GetComponent <BotonConstruir>(); texto.text = $"{nombre.name} ${valor.Precio}"; }