Example #1
0
        public StringReference(bool variable = false)
        {
            UseConstant = !variable;

            if (!variable)
            {
                ConstantValue = string.Empty;
            }
            else
            {
                Variable       = ScriptableObject.CreateInstance <StringVar>();
                Variable.Value = string.Empty;
            }
        }
Example #2
0
 public virtual void SetValue(StringVar var)
 {
     Value        = var.Value;
     DefaultValue = var.DefaultValue;
 }