destroy current object unity code example
Example 1: unity remove gameobject
// To remove a GameObject use the function 'Destroy()'
Destroy(gameObject);
Example 2: how to destroy an object in unity
Destroy(gameObject);
// To remove a GameObject use the function 'Destroy()'
Destroy(gameObject);
Destroy(gameObject);