public Vector3Reference(bool variable = false) { UseConstant = !variable; if (!variable) { ConstantValue = Vector3.zero; } else { Variable = ScriptableObject.CreateInstance <Vector3Var>(); Variable.Value = Vector3.zero; } }
public virtual void SetValue(Vector3Var var) { Value = var.Value; }