コード例 #1
0
ファイル: GameManager.cs プロジェクト: RyanXiang/RhythmGame
            public void DestroyChunk(MoveElement_Chunk moveElement)
            {
                Vector3 newPos = lastChunk.transform.position;
                newPos.x -= chunkSize;

                Destroy(moveElement.gameObject);

                lastChunk = InstantiateChunk();
                lastChunk.transform.position = newPos;
            }
コード例 #2
0
ファイル: GameManager.cs プロジェクト: hafewa/Droidcon-Run
    public void DestroyChunk(MoveElement_Chunk moveElement)
    {
        Vector3 newPos = lastChunk.transform.position;

        newPos.x -= chunkSize;

        Destroy(moveElement.gameObject);

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