Ejemplo n.º 1
0
    public void RandomSetting()
    {
        GameManager.instance.ChaptManager.NowChapter.IsClear = false;

        for (int i = 0; i < 10; i++)
        {
            int ChapterId = PercentInfo.StageRandomSelect(m_ChapterInfo.Chapter_MapList);  //랜덤챕터리스트
            Debug.Log("Chapter ID" + ChapterId);
            //Debug.Log(ChapterId);
            for (int j = 0; j < GameManager.instance.StManager.StageList.Count; j++)
            {
                if (ChapterId == GameManager.instance.StManager.StageList[j].Stageid)    //랜덤챕터리스트 와 챕터리스트 아이디 비교
                {
                    GameManager.instance.ChaptManager.NowChapter.Chapter_StageList.Add(GameManager.instance.StManager.StageList[j]);
                }
            }//for (int j = 0; j < World_RandomChapterList.Count; j++)
        }
    }