예제 #1
0
    void AddCell()
    {
        GameObject      newGeneSelector = Instantiate(geneSelectorPrefab, geneSelectionRect);
        UI_GeneSelector uiNewGS         = newGeneSelector.GetComponent <UI_GeneSelector>();

        uiNewGS.Init();
        uiGeneSelectors.Add(uiNewGS);

        UpdateUIPosition();
    }
예제 #2
0
    public void RemoveCell(UI_GeneSelector _gs)
    {
        uiGeneSelectors.Remove(_gs);

        UpdateUIPosition();
    }