public void SaveData() { //Debug.Log("Called SaveData"); spawnedData = new SpawnedData(); spawnedData.AllSpawnedObj = AllSpawnedDataList; spawnedData.TerraMshCntrlAllVertexIndexCount = p.MeshController.AllVertexs.Count; XMLSerie.WriteXMLSpawned(spawnedData); }