Check out example codes for "how to destroy a gameobject permanently unity when player go through it 2d". It will help you in understanding the concepts better.

Code Example 1

hkgdkydg

Learn ReactJs, React Native from akashmittal.com