public ColorReference(bool variable = false) { UseConstant = !variable; if (!variable) { ConstantValue = Color.white; } else { Variable = ScriptableObject.CreateInstance <ColorVar>(); Variable.Value = Color.white; } }
public virtual void SetValue(ColorVar var) { Value = var.Value; }