public void DestroyChunk(MoveElement_Chunk moveElement) { Vector3 newPos = lastChunk.transform.position; newPos.x -= chunkSize; Destroy(moveElement.gameObject); lastChunk = InstantiateChunk(); lastChunk.transform.position = newPos; }
public void DestroyChunk(MoveElement_Chunk moveElement) { Vector3 newPos = lastChunk.transform.position; newPos.x -= chunkSize; Destroy(moveElement.gameObject); lastChunk = InstantiateChunk(); lastChunk.transform.position = newPos; }