LevelController.addEndingSection C# (CSharp) 메소드

addEndingSection() 개인적인 메소드

private addEndingSection ( ) : void
리턴 void
    private void addEndingSection()
    {
        GameObject lastSection = ((GameObject) currentPath [currentPath.Count-1]);
        Vector3 pos = lastSection.transform.position;
        pos.z += lastSection.GetComponent<SectionController>().Length/2;
        GameObject caveInstance = (GameObject) Instantiate(endCave, pos, Quaternion.identity);
        caveInstance.transform.position = pos;
    }