Exemple #1
0
        public void SetIndex(int i, int tot, ColorPalette palette)
        {
            V       = i;
            lineVal = i * 1.0f / (tot - 1);
            lineVal = 1 - lineVal;
            BlockContainer bc = GetComponent <BlockContainer>();

            bc.colorPalette   = palette;
            bc.numberOfBlocks = tot;
            bc.UpdateChildren();
        }