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