how to remove component of object javascript code example Example: unity remove component in script Destroy (gameObject);