示例#1
0
        public ColorReference(bool variable = false)
        {
            UseConstant = !variable;

            if (!variable)
            {
                ConstantValue = Color.white;
            }
            else
            {
                Variable       = ScriptableObject.CreateInstance <ColorVar>();
                Variable.Value = Color.white;
            }
        }
示例#2
0
 public virtual void SetValue(ColorVar var)
 {
     Value = var.Value;
 }