private void AddElement() { Cell cell = Instantiate(cellPrefab); cell.ElementName = scroller.GridLayout.transform.childCount.ToString(); scroller.AddElement(cell.gameObject); }
private void onPoolReady() { Scroller.AddElement(1, 1); }