public void init(ColorPalette c)
        {
            ClearList();
            int index = 0;

            currentPalette = c;
            foreach (Color a in c.colors)
            {
                ColorSelectButton c1 = Instantiate(colorSelectPrefab, sortSpot);
                c1.init(this, index, a);
                index++;
                selectButtons.Add(c1);
            }
            bottomButtons.SetAsLastSibling();
            picker.gameObject.SetActive(true);
            currentlySelectedIndex = 0;
            picker.CurrentColor    = c.colors[0];
        }
 internal void SelectButton(ColorSelectButton colorSelectButton)
 {
     currentlySelectedIndex = colorSelectButton.index;
     picker.CurrentColor    = colorSelectButton.image.color;
 }