public virtual void Set(ShopSectionCore section) { this.Section = section; if (label) { label.text = section.DisplayName.Text; } items.Set(section.Items); }
public virtual void Set(ShopSectionCore section) { this.Section = section; if (label) { label.text = section.DisplayName.Text; } if (icon) { section.Icon.ApplyTo(icon); } }
protected virtual ShopSectionHandleUITemplate CreateTemplate(ShopSectionCore section) { var instance = Instantiate(template, transform); var script = instance.GetComponent <ShopSectionHandleUITemplate>(); script.Init(toggleGroup); script.Set(section); script.OnActivate += ElementActivatedCallback; return(script); }
void SelectionCallback(ShopSectionCore value) { section.Set(value); }