Пример #1
0
    public void SetColor(Color color, bool useAlpha = false)
    {
        _r.SetDesire(color.r);
        _g.SetDesire(color.g);
        _b.SetDesire(color.b);
        if (useAlpha)
        {
            _a.SetDesire(color.a);
        }

        if (_updater != null && (!_r.IsOnDesired.Value || !_g.IsOnDesired.Value || !_b.IsOnDesired.Value || (useAlpha && !_a.IsOnDesired.Value)))
        {
            _updater.RequestUpdate(this);
        }
    }