Example #1
0
        protected override void SetValue(long entityId, TScript script, TValue value, bool send)
        {
            traceLog("entered");

            TValue currentValue = _getter(script);

            if (!EqualityComparer.Equals(value, currentValue))
            {
                traceLog("value changed from " + currentValue + " to " + value);
                _setter(script, value);
                if (send)
                {
                    SendValue(entityId, value);
                }

                _control?.UpdateVisual();
            }
            else
            {
                traceLog("equals previous value");
            }
        }
Example #2
0
 private void UpdateVisual()
 {
     _control?.UpdateVisual();
 }