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