unity set variable on gameobject code example Example: variable gameobject unity public GameObject *name*;