Esempio n. 1
0
    void Start()
    {
        //사용 변수 초기화
        isChapter1Boss  = false;
        wordType        = 0;
        isMoeumStage    = false;
        questionVal_arr = new string[3] {
            "", "", ""
        };
        countCorrect_hell = 0;
        isHellQuestState  = false;
        hellCountInd      = 0;
        healProbability   = 10;

        m_enemyScriptDefault = GameObject.FindWithTag("Enemy").GetComponent <EnemyScriptDefault>();
        //처음 문제 생성
        for (int i = 0; i < 3; i++)
        {
            MakeNewQuestion(i, isChapter1Boss);
            healRenderer_arr[i].enabled = false; //힐 오브젝트 렌더 끄기

            oldestQuestInd_arr[i] = 0;           //사용변수 초기화
        }

        isChapter1Boss = m_battleManager.Is1BossStage();    //1챕터 보스 확인
        bossStageIdx   = m_battleManager.Is2to5BossStage(); //2~5챕터 보스인지 확인
        MakeBossStage(bossStageIdx);

        if (bossStageIdx == 8)//5-4스테이지 사용시 과제 1개로
        {
            oldestQuestInd_arr[0] = -1;
            oldestQuestInd_arr[2] = -1;
        }
    }
Esempio n. 2
0
 public void AccessEnemyObject()
 {
     m_enemy = GameObject.FindGameObjectWithTag("Enemy").GetComponent <EnemyScriptDefault>();
 }