private bool loadGene(Promoter prom, string name, string RBSf)
{
Product gene = new Product();
if (String.IsNullOrEmpty(name) || String.IsNullOrEmpty(RBSf))
{
Debug.Log("Error: Empty Gene name field");
return false;
}
gene.setName(name);
gene.setQuantityFactor(float.Parse(RBSf.Replace(",", ".")));
prom.addProduct(gene);
return true;
}