Ejemplo n.º 1
0
 void ElementActivatedCallback(ShopSectionHandleUITemplate template)
 {
     if (OnSelection != null)
     {
         OnSelection(template.Section);
     }
 }
Ejemplo n.º 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;
            }
        }