Ejemplo n.º 1
0
        public virtual void Set(ShopSectionCore section)
        {
            this.Section = section;

            if (label)
            {
                label.text = section.DisplayName.Text;
            }

            items.Set(section.Items);
        }
Ejemplo n.º 2
0
        public virtual void Set(ShopSectionCore section)
        {
            this.Section = section;

            if (label)
            {
                label.text = section.DisplayName.Text;
            }
            if (icon)
            {
                section.Icon.ApplyTo(icon);
            }
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 void SelectionCallback(ShopSectionCore value)
 {
     section.Set(value);
 }