how to get a script attached to a gameobject unity code example Example: unity get gameobject script is attached to this.gameObject