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

            if (!variable)
            {
                ConstantValue = 0;
            }
            else
            {
                Variable       = ScriptableObject.CreateInstance <FloatVar>();
                Variable.Value = 0;
            }
        }
Beispiel #2
0
 /// <summary>Add or Remove the passed var value</summary>
 public virtual void Add(FloatVar var)
 {
     Value += var.Value;
 }
Beispiel #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;
 }
Beispiel #5
0
 public FloatReference(FloatVar value)
 {
     Value = value.Value;
 }