Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        _imageRect   = HueWheel.GetComponent <RectTransform>();
        _SVimageRect = SVImage.GetComponent <RectTransform>();

        _resultColor = Color.red;
        UpdateSVTexture(Color.red);
        UpdateValues.SetValues(Color.red);
        UpdateCursor(new Vector3(HueWheel.sprite.texture.width, HueWheel.sprite.texture.height / 2));
    }
 public void SetColor(Color color)
 {
     UpdateSVTexture(color);
     updateValues.SetValues(color);
 }