private void AddCell(Vector2 position) { GameObject newObject = Instantiate(new GameObject("Cell"), new Vector3(position.x, 0f, position.y), Quaternion.identity, transform); TerrainCell tc = newObject.AddComponent <TerrainCell>(); tc.PrepareTerrainCell(this); cells.Add(tc); }