public SetField ( string name, JSONObject, obj ) : void | ||
name | string | |
obj | JSONObject, | |
return | void |
public void SetField(string name, JSONObject obj)
{
if (HasField(name))
{
list.Remove(this[name]);
keys.Remove(name);
}
AddField(name, obj);
}
public void RemoveField(string name)
private void SetVec2(Vector2 value) { JSONObject vecJson = new JSONObject(); vecJson.SetField("x",value.x); vecJson.SetField("y",value.y); VariableManager.JsonRecord.SetField(ID,vecJson); }