public FloatReference(bool variable = false)
        {
            UseConstant = !variable;

            if (!variable)
            {
                ConstantValue = 0;
            }
            else
            {
                Variable       = ScriptableObject.CreateInstance <FloatVar>();
                Variable.Value = 0;
            }
        }
示例#2
0
 /// <summary>Add or Remove the passed var value</summary>
 public virtual void Add(FloatVar var)
 {
     Value += var.Value;
 }
示例#3
0
 /// <summary>Set the Value using another FoatVar</summary>
 public virtual void SetValue(FloatVar var)
 {
     Value = var.Value;
 }
 public FloatReference(FloatVar value)
 {
     Value       = value;
     UseConstant = false;
 }
示例#5
0
 public FloatReference(FloatVar value)
 {
     Value = value.Value;
 }