public void Clear() { foreach (GameObject mesh in meshes) { DestroyImmediate(mesh); } meshes = new List <GameObject> (); sharedData.Clear(); relativeField.Clear(); }