get transform data unity and store in field code example
Example: how to set a transform equal to something unity
public Transform tr; //make ref. in inspector window
tr.position = new Vector2(x, y);
public Transform tr; //make ref. in inspector window
tr.position = new Vector2(x, y);