void Destroy()

Summary

Destroy this component, if it isn't already destroyed. The component will be removed from its GameObject and will stop existing. You should avoid interating with the component after calling this.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.