how to destroy a gameobject in unity javascript code example
Example: how to destroy a gameobject in c#
Destroy(gameObject); // destroys the game object attached to the script
Destroy(gameObject); // destroys the game object attached to the script