delete object in unity c# code example Example: unity remove component in script Destroy (gameObject);