Beispiel #1
0
    public void GetColor()
    {
        button = GetComponent <Button>();
        cp     = GetComponentInParent <ColorPicker>();

        var   colors = button.colors;
        Color color;

        colors.highlightedColor = button.colors.normalColor;
        colors.pressedColor     = button.colors.normalColor;
        button.colors           = colors;
        color = colors.normalColor;
        cp.ColorPresets(color);
    }