how does unity destroy work code example Example 1: destroy gameobject unity Destroy(this.gameObject); Example 2: how to destroy an object in unity Destroy(gameObject);