Beispiel #1
0
 void ElementActivatedCallback(ShopSectionHandleUITemplate template)
 {
     if (OnSelection != null)
     {
         OnSelection(template.Section);
     }
 }
Beispiel #2
0
        public virtual void Init()
        {
            Elements = new ShopSectionHandleUITemplate[Shop.Sections.Length];

            for (int i = 0; i < Elements.Length; i++)
            {
                var element = CreateTemplate(Shop.Sections[i]);

                Elements[i] = element;
            }
        }