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

            if (!variable)
            {
                ConstantValue = Vector2.zero;
            }
            else
            {
                Variable       = ScriptableObject.CreateInstance <Vector2Var>();
                Variable.Value = Vector2.zero;
            }
        }
Example #2
0
 public virtual void SetValue(Vector2Var var)
 {
     Value = var.Value;
 }