Пример #1
0
    private void AddElement()
    {
        Cell cell = Instantiate(cellPrefab);

        cell.ElementName = scroller.GridLayout.transform.childCount.ToString();
        scroller.AddElement(cell.gameObject);
    }
Пример #2
0
 private void onPoolReady()
 {
     Scroller.AddElement(1, 1);
 }