public void deleteModels() { deleteModel.deleteModels(this.ModelNames); foreach (GameObject go in generatedObjects) { Destroy(go); } this.ModelNames.Clear(); this.ModelStateWriters.Clear(); this.modelsToGen.Clear(); this.generatedObjects.Clear(); this.suctionCupStatusSubscriber.collisionTesters.Clear(); }