/// <summary> /// Create and add new SlideItem. /// </summary> /// <returns>created SlideItem</returns> public SlideItem AddItem() { SlideItem item = Instantiate(SlideItemPrefabs, SlideItemContainer.transform, false); InitSlideItem(item); return(item); }
private void InitSlideItem(SlideItem item) { item.SetSize(ItemSize.x, ItemSize.y); item.SetScale(1f); }