0
Q:

destroy gameobject unity

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

New to Communities?

Join the community