public void SetBright(Renderer[] brightItem,int brightIndex) { for (int i=0; i<7; i++) { ((Renderer)brightItem.GetValue (i)).material.color = new Color(((Renderer)brightItem.GetValue (i)).material.color.r,((Renderer)brightItem.GetValue (i)).material.color.g,((Renderer)brightItem.GetValue (i)).material.color.b,.5f); } ((Renderer)brightItem.GetValue (brightIndex-1)).material.color = new Color(((Renderer)brightItem.GetValue (brightIndex-1)).material.color.r,((Renderer)brightItem.GetValue (brightIndex-1)).material.color.g,((Renderer)brightItem.GetValue (brightIndex-1)).material.color.b,1f); }
public void SetColor(Renderer[] paletteItem,int colorIndex,int num) { for (int i=0; i<49; i++) { ((Renderer)paletteItem.GetValue (i)).material.color = new Color(((Renderer)paletteItem.GetValue (i)).material.color.r,((Renderer)paletteItem.GetValue (i)).material.color.g,((Renderer)paletteItem.GetValue (i)).material.color.b,.5f); } ((Renderer)paletteItem.GetValue (colorIndex-1)).material.color = new Color(((Renderer)paletteItem.GetValue (colorIndex-1)).material.color.r,((Renderer)paletteItem.GetValue (colorIndex-1)).material.color.g,((Renderer)paletteItem.GetValue (colorIndex-1)).material.color.b,1f); Color.TryParseHexString (ColorArray [colorIndex - 1], out value[num]); }