[SerializeField] GameObject MyGreatObject; //Choose MyGreatObject in the inspector Destroy (MyGreatObject, 5);