unity assign gameObject variable in script code example Example: variable gameobject unity public GameObject *name*;