Exemple #1
0
    public void CreateBush()
    {
        GameObject bush = Instantiate(Resources.Load("Prefabs/bush"), new Vector3(0, 0, 0), Quaternion.identity, CreateManager.GetInstance().bushParent) as GameObject;

        bush.name = "bush" + CreateManager.GetInstance().GetBushNum(); // 복제된 bush 에 번호부여
        CreateManager.GetInstance().SetBushNum(1);                     // 1증가
    }