public void UpdateDemoBasedOnPanels()
        {
            List <PalettePair> pairs = new List <PalettePair>();

            foreach (CustomPaletteSelectButton c in buttons)
            {
                PalettePair p = new PalettePair(c.basePalette, c.palette);
                pairs.Add(p);
            }

            demoSprite.ApplyPalettes(pairs);
        }
Пример #2
0
        internal void UpdateDemoBasedOnPanels()
        {
            List <PalettePair> pairs = new List <PalettePair>();


            for (int i = 0; i < panels.Count; i++)
            {
                PalettePair p = new PalettePair(groups[i].basePalette, groups[i].options[panels[i].currentIndex]);
                pairs.Add(p);
            }

            demoSprite.ApplyPalettes(pairs);
        }