Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
 private void InitSlideItem(SlideItem item)
 {
     item.SetSize(ItemSize.x, ItemSize.y);
     item.SetScale(1f);
 }