Beispiel #1
0
        private void Create(KeyValuePair <StoryType, List <StorySO> > pair)
        {
            StoryCategoryFiller categoryFiller = Instantiate(categoryPrefab, Vector3.zero, Quaternion.identity);

            categoryFiller.manager = this;

            var trans = categoryFiller.transform;

            trans.SetParent(listView.transform);
            trans.localScale = Vector3.one;

            categoryFiller.FillCategory(pair);
            m_CategoryItems.Add(categoryFiller);

            var categoryTab = Instantiate(categoryTabPrefab, Vector3.zero, Quaternion.identity);

            categoryTab.manager = this;
            categoryTab.type    = pair.Key;

            trans = categoryTab.transform;
            trans.SetParent(tabAreaView.transform);
            trans.localScale = Vector3.one;
        }
Beispiel #2
0
 public void Subscribe(StoryCategoryFiller item)
 {
     m_CategoryItems.Add(item);
 }