// To remove a GameObject use the function 'Destroy()' Destroy(gameObject);
Destroy(this.gameObject);
Destroy(gameObject); // destroys the game object attached to the script
void OnCollisionEnter(Collision other) { hit += 1; checkhit(); }