Beispiel #1
0
            public void DestroyChunk(MoveElement_Chunk moveElement)
            {
                Vector3 newPos = lastChunk.transform.position;
                newPos.x -= chunkSize;

                Destroy(moveElement.gameObject);

                lastChunk = InstantiateChunk();
                lastChunk.transform.position = newPos;
            }
Beispiel #2
0
    public void DestroyChunk(MoveElement_Chunk moveElement)
    {
        Vector3 newPos = lastChunk.transform.position;

        newPos.x -= chunkSize;

        Destroy(moveElement.gameObject);

        lastChunk = InstantiateChunk();
        lastChunk.transform.position = newPos;
    }