assign reference to parent unity code example Example: how to reference the parent of a gameobject transform.parent.gameObject