void AddCell() { GameObject newGeneSelector = Instantiate(geneSelectorPrefab, geneSelectionRect); UI_GeneSelector uiNewGS = newGeneSelector.GetComponent <UI_GeneSelector>(); uiNewGS.Init(); uiGeneSelectors.Add(uiNewGS); UpdateUIPosition(); }
public void RemoveCell(UI_GeneSelector _gs) { uiGeneSelectors.Remove(_gs); UpdateUIPosition(); }