예제 #1
0
        public virtual void Set(ShopSectionCore section)
        {
            this.Section = section;

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

            items.Set(section.Items);
        }
예제 #2
0
        public virtual void Set(ShopSectionCore section)
        {
            this.Section = section;

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