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