Esempio n. 1
0
    private void Update()
    {
        if (SceneManager.GetActiveScene().name != "Tutorial_Scene_Ver2")
        {
            return;
        }

        Debug.Log(tutorial);

        if ((playerGetWeaponUINo5Script.bgUiNo5Obj.activeInHierarchy == true) &&
            (tutorial == TutorialStateVer2.step04_1))
        {
            tutorial = TutorialStateVer2.step04_2;
        }

        if ((playerGetWeaponUINo5Script.bgUiNo5Obj.activeInHierarchy == false) &&
            (tutorial == TutorialStateVer2.step04_2_1))
        {
            tutorial = TutorialStateVer2.step04_3;
        }

        if ((playerPowerGetUiNo2Script.bgUiNo2Obj.activeInHierarchy == false) &&
            (tutorial == TutorialStateVer2.step05_2))
        {
            tutorial = TutorialStateVer2.step05_3;
        }

        switch (tutorial)
        {
        case TutorialStateVer2.step00:

            if (((Input.GetKeyDown(KeyCode.W)) ||
                 Input.GetKeyDown(KeyCode.A) ||
                 Input.GetKeyDown(KeyCode.S) ||
                 Input.GetKeyDown(KeyCode.D)) &&
                startOnce == false)
            {
                startOnce = true;
                StopAllCoroutines();
                uiSet[4].SetActive(false);
                //¿òÁ÷¿©
                makePlayerWait = MakePlayerWait.play;

                for (int i = 0; i < 4; i++)
                {
                    wsadButtonAni[i].SetBool("Start", false);
                }
            }
            if (Input.GetKey(KeyCode.W) && (startOnce == true))
            {
                wsadButtonAni[0].SetTrigger("StartButton");
            }
            if (Input.GetKey(KeyCode.A) && (startOnce == true))
            {
                wsadButtonAni[1].SetTrigger("StartButton");
            }
            if (Input.GetKey(KeyCode.S) && (startOnce == true))
            {
                wsadButtonAni[2].SetTrigger("StartButton");
            }
            if (Input.GetKey(KeyCode.D) && (startOnce == true))
            {
                wsadButtonAni[3].SetTrigger("StartButton");
            }

            if (Input.GetKeyUp(KeyCode.W) && (startOnce == true))
            {
                uiSet[5].SetActive(false);
                stage00Check[0] = true;
                wsadButtonAni[0].SetBool("Start", false);
            }
            if (Input.GetKeyUp(KeyCode.A) && (startOnce == true))
            {
                uiSet[6].SetActive(false);
                stage00Check[1] = true;
                wsadButtonAni[1].SetBool("Start", false);
            }
            if (Input.GetKeyUp(KeyCode.S) && (startOnce == true))
            {
                uiSet[7].SetActive(false);
                stage00Check[2] = true;
                wsadButtonAni[2].SetBool("Start", false);
            }
            if (Input.GetKeyUp(KeyCode.D) && (startOnce == true))
            {
                uiSet[8].SetActive(false);
                stage00Check[3] = true;
                wsadButtonAni[3].SetBool("Start", false);
            }

            if (stage00Check[0] && stage00Check[1] && stage00Check[2] && stage00Check[3])
            {
                uiSet[0].SetActive(false);
                takeTimeForNextLevel();
            }
            break;

        case TutorialStateVer2.step01_1:
            if (startOnce == false)
            {
                startOnce = true;
                camCon(0);
                Invoke("takeTimeForNextLevel", 3f);
            }
            break;

        case TutorialStateVer2.step01_2:
            break;

        case TutorialStateVer2.step01_3:
            if (startOnce == false)
            {
                startOnce = true;
                camCon(0);

                //¸ØÃç
                makePlayerWait = MakePlayerWait.wait;

                ingameUISet[0].SetActive(false);
                ingameUISet[1].SetActive(false);

                StartCoroutine("ButtonAni");
                Invoke("takeTimeForNextLevel", 2f);
            }
            break;

        // 1¹ø¤Š ¹®ÀÌ ¿­¸²
        case TutorialStateVer2.step01_3_1:
            if (typingTextConScript.textState == TextState.textStart)
            {
                return;
            }
            if ((Input.GetKeyDown(KeyCode.Space)))
            {
                switch (textCount)
                {
                case 1:
                    startOnce = false;
                    StopAllCoroutines();
                    //Ä· Á¶Àý
                    camCon(0, true);
                    camCon(1);
                    //¹® ¿­·Á!
                    doorAni[0].SetTrigger("OpenDoor");

                    tutorial = TutorialStateVer2.step01_4;
                    return;
                }

                textCount++;
                typingTextConScript.typingTextStart(textCount);
            }
            break;

        case TutorialStateVer2.step01_4:
            uiSet[1].SetActive(false);
            typingUiSet[0].SetActive(false);
            Invoke("takeTimeForNextLevel", 3f);
            break;

        case TutorialStateVer2.step02_1:
            if (startOnce == false)
            {
                startOnce = true;
                //¿òÁ÷¿©!
                makePlayerWait = MakePlayerWait.play;
                // ÀΰÔÀÓ ui È­¸é Á¶Àý
                ingameUISet[0].SetActive(true);
            }
            break;

        case TutorialStateVer2.step02_2:
            if (startOnce == false)
            {
                startOnce = true;
                //¹® ´Ý¾Æ!
                doorAni[0].SetBool("Start", true);
                //¸ØÃç
                makePlayerWait = MakePlayerWait.wait;
                typingUiSet[0].SetActive(true);

                StartCoroutine("ButtonAni");

                textCount++;
                typingTextConScript.typingTextStart(textCount);
            }

            if (typingTextConScript.textState == TextState.textStart)
            {
                return;
            }
            if (Input.GetKeyDown(KeyCode.Space))
            {
                if (detailTextCount >= 7)
                {
                    StopAllCoroutines();

                    uiSet[2].SetActive(false);
                    forIngameUiTutorial[detailTextCount - 1].SetActive(false);

                    startOnce = false;
                    tutorial  = TutorialStateVer2.step02_3;
                }
                else
                {
                    typingUiSet[0].SetActive(false);
                    uiSet[2].SetActive(true);

                    if (detailTextCount != 0)
                    {
                        forIngameUiTutorial[detailTextCount - 1].SetActive(false);
                    }
                    forIngameUiTutorial[detailTextCount].SetActive(true);
                    typingTextConScript.tutorialDetail(detailTextCount);
                    detailTextCount++;
                }
            }
            break;


        case TutorialStateVer2.step02_3:
            if (startOnce == false)
            {
                StartCoroutine("ButtonAni");

                startOnce = true;

                typingUiSet[0].SetActive(true);

                textCount++;
                typingTextConScript.typingTextStart(textCount);
            }
            if (typingTextConScript.textState == TextState.textStart)
            {
                return;
            }
            if (Input.GetKeyDown(KeyCode.Space))
            {
                StopAllCoroutines();

                startOnce = false;
                typingUiSet[0].SetActive(false);
                tutorial = TutorialStateVer2.step03_1;
            }
            break;

        //¸ðÀÇ ÀüÅõ ½ÃÀÛ!
        // ‹š·ÁºÁ!
        case TutorialStateVer2.step03_1:
            if (startOnce == false)
            {
                startOnce = true;
                Instantiate(tutorialMonster, tutorialMonsterSpwanPos);

                StartCoroutine("ButtonAni");
                typingUiSet[0].SetActive(true);
                typingUiSet[2].SetActive(true);
                textCount++;
                typingTextConScript.typingTextStart(textCount);
            }
            if (typingTextConScript.textState == TextState.textStart)
            {
                return;
            }
            if (Input.GetKeyDown(KeyCode.Space))
            {
                startOnce = false;
                //¿òÁ÷¿©
                makePlayerWait = MakePlayerWait.play;
                StopAllCoroutines();
                typingUiSet[0].SetActive(false);
                typingUiSet[2].SetActive(false);
                tutorial = TutorialStateVer2.step03_2;
            }
            break;

        case TutorialStateVer2.step03_2:
            break;

        // À¸¾Ç ¸Â¾Ò¾î!
        case TutorialStateVer2.step03_3:
            if (startOnce == false)
            {
                //¸ØÃç
                makePlayerWait = MakePlayerWait.wait;

                startOnce    = true;
                buttonAniNum = 4;
                StartCoroutine("ButtonAni");
                typingUiSet[0].SetActive(true);
                typingUiSet[1].SetActive(true);
                textCount++;
                typingTextConScript.typingTextStart(textCount);
            }
            if (typingTextConScript.textState == TextState.textStart)
            {
                return;
            }
            if (Input.GetKeyDown(KeyCode.Space))
            {
                startOnce = false;
                StopAllCoroutines();
                typingUiSet[0].SetActive(false);
                typingUiSet[1].SetActive(false);
                TutorialTypeMonsterMove tutorialMoveScript = GameObject.Find("TutorialEnemy01(Clone)").GetComponent <TutorialTypeMonsterMove>();
                tutorialMoveScript.state = TutorialEnemyState.getPlayerDogged;
                tutorial       = TutorialStateVer2.step03_4;
                makePlayerWait = MakePlayerWait.play;
            }
            break;

        // ÀÌÁ¦ ±¸¸£±â ½ÃÀÛ!
        case TutorialStateVer2.step03_4:
            if (Input.GetKeyDown(KeyCode.Space) && Input.GetKey(KeyCode.A) && startOnce == false)
            {
                startOnce = true;
                Invoke("takeTimeForNextLevel", 0.5f);
            }
            else if (Input.GetKeyDown(KeyCode.Space) && Input.GetKey(KeyCode.D) && startOnce == false)
            {
                startOnce = true;
                Invoke("takeTimeForNextLevel", 0.5f);
            }
            else if (Input.GetKeyDown(KeyCode.Space) && Input.GetKey(KeyCode.S) && startOnce == false)
            {
                startOnce = true;
                Invoke("takeTimeForNextLevel", 0.5f);
            }
            else if (Input.GetKeyDown(KeyCode.Space) && Input.GetKey(KeyCode.W) && startOnce == false)
            {
                startOnce = true;
                Invoke("takeTimeForNextLevel", 0.5f);
            }
            break;

        // ±¸¸£±â ¼º°ø ! Æиµ ÇؾßÇØ!
        case TutorialStateVer2.step03_5:
            if (startOnce == false)
            {
                //¸ØÃç
                makePlayerWait = MakePlayerWait.wait;

                startOnce    = true;
                buttonAniNum = 4;
                StartCoroutine("ButtonAni");
                typingUiSet[0].SetActive(true);
                typingUiSet[3].SetActive(true);

                textCount++;
                typingTextConScript.typingTextStart(textCount);
            }
            if (typingTextConScript.textState == TextState.textStart)
            {
                return;
            }
            if (Input.GetKeyDown(KeyCode.Space))
            {
                startOnce = false;
                StopAllCoroutines();
                typingUiSet[0].SetActive(false);
                typingUiSet[3].SetActive(false);

                TutorialTypeMonsterMove tutorialMoveScript = GameObject.Find("TutorialEnemy01(Clone)").GetComponent <TutorialTypeMonsterMove>();
                tutorialMoveScript.state = TutorialEnemyState.getParring;
                tutorial       = TutorialStateVer2.step03_6;
                makePlayerWait = MakePlayerWait.play;
            }
            break;

        // ÆиµÁß
        case TutorialStateVer2.step03_6:
            break;

        // ÀÌÁ¦ Á×´Â ¸ð½ÀÀ» º¸¿©ÁÙ²¨¾ß
        case TutorialStateVer2.step03_7:
            if (startOnce == false)
            {
                TutorialTypeMonsterMove tutorialMoveScript = GameObject.Find("TutorialEnemy01(Clone)").GetComponent <TutorialTypeMonsterMove>();
                tutorialMoveScript.state = TutorialEnemyState.getWait;

                //¸ØÃç
                makePlayerWait = MakePlayerWait.wait;

                startOnce = true;
                StartCoroutine("ButtonAni");
                typingUiSet[0].SetActive(true);

                textCount++;
                typingTextConScript.typingTextStart(textCount);
            }
            if (typingTextConScript.textState == TextState.textStart)
            {
                return;
            }
            if (Input.GetKeyDown(KeyCode.Space))
            {
                startOnce = false;
                StopAllCoroutines();
                typingUiSet[0].SetActive(false);

                TutorialTypeMonsterMove tutorialMoveScript = GameObject.Find("TutorialEnemy01(Clone)").GetComponent <TutorialTypeMonsterMove>();
                tutorialMoveScript.state = TutorialEnemyState.getAfterDead;
                tutorial       = TutorialStateVer2.step03_8;
                makePlayerWait = MakePlayerWait.play;
            }
            break;

        // ½Î¿ö!
        case TutorialStateVer2.step03_8:
            break;

        // Á×¾ú¾î! ¹«±â¸¦ ¸Ô¾î!
        case TutorialStateVer2.step03_9:
            if (startOnce == false)
            {
                startOnce = true;

                //¸ØÃç
                makePlayerWait = MakePlayerWait.wait;

                StartCoroutine("ButtonAni");
                typingUiSet[0].SetActive(true);

                textCount++;
                typingTextConScript.typingTextStart(textCount);
            }
            if (typingTextConScript.textState == TextState.textStart)
            {
                return;
            }
            if (Input.GetKeyDown(KeyCode.Space))
            {
                startOnce = false;

                StopAllCoroutines();
                typingUiSet[0].SetActive(false);

                makePlayerWait = MakePlayerWait.play;
                tutorial       = TutorialStateVer2.step04_1;
            }
            break;

        // ¹«±â¿¡°Ô ´Ù°¡°¡±â±îÁö ±â´Þ¸²
        case TutorialStateVer2.step04_1:
            break;

        // ¹«±â °ü·Ã ¼³¸í ui on!
        case TutorialStateVer2.step04_2:
            if (startOnce == false)
            {
                startOnce = true;

                //¸ØÃç
                makePlayerWait = MakePlayerWait.wait;

                uiSet[2].SetActive(true);
                forIngameUiTutorial[detailTextCount].SetActive(true);
                typingTextConScript.tutorialDetail(detailTextCount);
                detailTextCount++;
            }
            if (typingTextConScript.textState == TextState.textStart)
            {
                return;
            }
            if (Input.GetKeyDown(KeyCode.Space))
            {
                if (detailTextCount >= 11)
                {
                    StopAllCoroutines();
                    forIngameUiTutorial[detailTextCount - 1].SetActive(false);
                    startOnce = false;
                    uiSet[2].SetActive(false);
                    tutorial = TutorialStateVer2.step04_2_1;
                }
                else
                {
                    if (detailTextCount != 0)
                    {
                        forIngameUiTutorial[detailTextCount - 1].SetActive(false);
                    }
                    forIngameUiTutorial[detailTextCount].SetActive(true);
                    typingTextConScript.tutorialDetail(detailTextCount);
                    detailTextCount++;
                }
            }
            break;

        // Àá½Ã ±â´Þ¸² + ¹«±ââ UI¸¦ ³»¸®¸é UPDATE¿¡¼­ ó¸®ÇÔ
        case TutorialStateVer2.step04_2_1:
            break;

        // i¸¦ ´­·¯ºÁ¶ó°í ¼³¸íÇÔ
        case TutorialStateVer2.step04_3:
            if (startOnce == false)
            {
                startOnce = true;

                //¸ØÃç
                makePlayerWait = MakePlayerWait.wait;

                typingUiSet[0].SetActive(true);
                typingUiSet[4].SetActive(true);
                StartCoroutine("ButtonAni");


                textCount++;
                typingTextConScript.typingTextStart(textCount);
            }
            if (typingTextConScript.textState == TextState.textStart)
            {
                return;
            }
            if (Input.GetKeyDown(KeyCode.Space))
            {
                startOnce = false;

                StopAllCoroutines();
                typingUiSet[0].SetActive(false);
                typingUiSet[4].SetActive(false);

                makePlayerWait = MakePlayerWait.play;
                tutorial       = TutorialStateVer2.step04_4;
            }
            break;

        // i¸¦ ´©¸¦°æ¿ì
        case TutorialStateVer2.step04_4:
            if (Input.GetKeyDown(KeyCode.I) && startOnce == false)
            {
                startOnce = true;
                //¿òÁ÷¿©!
                makePlayerWait = MakePlayerWait.play;
            }
            if (Input.GetKeyDown(KeyCode.Escape) && startOnce == true)
            {
                startOnce = false;
                tutorial  = TutorialStateVer2.step04_5;
            }
            break;

        // ÀÌÁ¦ ¼®»ó¿¡ ´ëÇØ ¾Ë·ÁÁÜ
        case TutorialStateVer2.step04_5:
            if (startOnce == false)
            {
                startOnce = true;

                //¸ØÃç
                makePlayerWait = MakePlayerWait.wait;

                StartCoroutine("ButtonAni");
                typingUiSet[0].SetActive(true);

                textCount++;
                typingTextConScript.typingTextStart(textCount);
            }
            if (typingTextConScript.textState == TextState.textStart)
            {
                return;
            }
            if (Input.GetKeyDown(KeyCode.Space))
            {
                startOnce = false;

                //¹® ¿­¾î!
                doorAni[1].SetBool("openDoor", true);

                //¸ØÃç
                makePlayerWait = MakePlayerWait.play;

                StopAllCoroutines();
                typingUiSet[0].SetActive(false);
                tutorial = TutorialStateVer2.step05_1;
            }
            break;

        //
        case TutorialStateVer2.step05_1:
            if (startOnce == false)
            {
                makePlayerWait = MakePlayerWait.play;
            }
            startOnce = true;
            if (playerPowerGetUiNo2Script.bgUiNo2Obj.activeInHierarchy == true)
            {
                startOnce = false;
                tutorial  = TutorialStateVer2.step05_2;
            }
            break;

        case TutorialStateVer2.step05_2:
            //¸ØÃç
            makePlayerWait = MakePlayerWait.wait;
            break;

        //Æ©Å丮¾ó ³¡
        case TutorialStateVer2.step05_3:
            if (startOnce == false)
            {
                startOnce = true;
                //¿òÁ÷¿©
                makePlayerWait = MakePlayerWait.play;

                //¹® ¿­¾î!
                doorAni[2].SetBool("openDoor", true);
            }
            break;
        }
    }
Esempio n. 2
0
    void tutorial()
    {
        switch (tutorialState)
        {
        case TutorialState.tutorialReady:
            if (Input.GetKeyDown(KeyCode.Space))
            {
                tutorialState = TutorialState.tutorial01;

                uiPanel[0].SetActive(true);
                uiPanel[1].SetActive(true);
            }
            break;

        case TutorialState.tutorial01:
            if (startOnce == false)
            {
                startOnce = true;

                playerKeyButtonObj[4].SetActive(true);
                playerKeyButtonObj[4].transform.localPosition = new Vector3(296.7f, -432, 0);
                playerKeyButtonAni[4].enabled = true;

                typingTextConScript.typingTextStart(1);
            }
            if (Input.GetKeyDown(KeyCode.Space))
            {
                if (count >= 7)
                {
                    tutorialState = TutorialState.tutorial02_0;

                    tutorialBasicObj.SetActive(false);
                    forIngameUiTutorialVer[count - 1].enabled = false;

                    playerKeyButtonObj[4].SetActive(false);
                    playerKeyButtonAni[4].enabled = false;

                    startOnce = false;
                }
                else
                {
                    playerKeyButtonObj[4].SetActive(true);
                    playerKeyButtonObj[4].transform.localPosition = new Vector3(193, -371.4f, 0);
                    playerKeyButtonAni[4].enabled = true;

                    tutorialBasicObj.SetActive(true);
                    uiPanel[0].SetActive(false);
                    uiPanel[1].SetActive(false);

                    if (count != 0)
                    {
                        forIngameUiTutorialVer[count - 1].enabled = false;
                    }
                    forIngameUiTutorialVer[count].enabled = true;
                    typingTextConScript.tutorialDetail(count);
                    count++;
                }
            }
            break;

        case TutorialState.tutorial02_0:
            if (startOnce == false)
            {
                startOnce = true;

                playerKeyButtonObj[4].SetActive(true);
                playerKeyButtonObj[4].transform.localPosition = new Vector3(296.7f, -432, 0);
                playerKeyButtonAni[4].enabled = true;

                uiPanel[0].SetActive(true);
                uiPanel[1].SetActive(true);

                typingTextConScript.typingTextStart(2);
            }
            if (Input.GetKeyDown(KeyCode.Space))
            {
                playerKeyButtonObj[4].SetActive(false);

                uiPanel[1].SetActive(false);
                typingTextConScript.typingTextStart(3);
                nowTutorialNum = 0;

                for (int i = 0; i < 4; i++)
                {
                    playerKeyButtonObj[i].SetActive(true);
                    playerKeyButtonAni[i].SetBool("Start", false);
                }
                playerKeyButtonAni[0].SetBool("Start", true);

                tutorialState = TutorialState.tutorial02_1;
            }
            break;

        case TutorialState.tutorial02_1:
            if (Input.GetKeyDown(KeyCode.W))
            {
                for (int i = 0; i < 5; i++)
                {
                    playerKeyButtonAni[i].SetBool("Start", false);
                }
                playerKeyButtonAni[1].SetBool("Start", true);

                playerKeyButtonObj[1].SetActive(true);


                typingTextConScript.typingTextStart(4);
                nowTutorialNum = 1;
                tutorialState  = TutorialState.wait;
                Invoke("resetState", 0.5f);
            }
            break;

        case TutorialState.tutorial02_2:
            if (Input.GetKeyDown(KeyCode.A))
            {
                for (int i = 0; i < 5; i++)
                {
                    playerKeyButtonAni[i].SetBool("Start", false);
                }
                playerKeyButtonAni[2].SetBool("Start", true);

                playerKeyButtonObj[2].SetActive(true);
                playerKeyButtonAni[2].enabled = true;


                typingTextConScript.typingTextStart(5);
                nowTutorialNum = 2;
                tutorialState  = TutorialState.wait;
                Invoke("resetState", 0.5f);
            }
            break;

        case TutorialState.tutorial02_3:
            if (Input.GetKeyDown(KeyCode.D))
            {
                for (int i = 0; i < 5; i++)
                {
                    playerKeyButtonAni[i].SetBool("Start", false);
                }
                playerKeyButtonAni[3].SetBool("Start", true);

                playerKeyButtonObj[3].SetActive(true);
                playerKeyButtonAni[3].enabled = true;


                typingTextConScript.typingTextStart(6);
                nowTutorialNum = 3;
                tutorialState  = TutorialState.wait;
                Invoke("resetState", 0.5f);
            }
            break;

        case TutorialState.tutorial02_4:
            if (Input.GetKeyDown(KeyCode.S))
            {
                playerKeyButtonObj[4].SetActive(true);

                for (int i = 0; i < 5; i++)
                {
                    playerKeyButtonAni[i].SetBool("Start", false);
                }

                typingTextConScript.typingTextStart(7);
                nowTutorialNum = 4;
                tutorialState  = TutorialState.wait;
                Invoke("resetState", 0.5f);
            }
            break;

        case TutorialState.tutorial02_5:
            if (Input.GetKeyDown(KeyCode.Space) && Input.GetKey(KeyCode.A) ||
                Input.GetKeyDown(KeyCode.Space) && Input.GetKey(KeyCode.D) ||
                Input.GetKeyDown(KeyCode.Space) && Input.GetKey(KeyCode.S) ||
                Input.GetKeyDown(KeyCode.Space) && Input.GetKey(KeyCode.W))
            {
                tutorialState = TutorialState.wait;

                for (int i = 0; i < 5; i++)
                {
                    playerKeyButtonObj[i].SetActive(false);
                    playerKeyButtonAni[i].enabled = false;
                }

                playerKeyButtonObj[6].SetActive(true);
                playerKeyButtonAni[6].enabled = true;

                typingTextConScript.typingTextStart(8);
                // ´ÙÀ½²¨ tutorial02_6 ÀÔ´Ï´Ù ¶ó°í ¾Ë¸²
                nowTutorialNum = 5;

                uiPanel[0].SetActive(false);
                uiPanel[1].SetActive(false);

                Invoke("resetState", 0.5f);
            }
            break;


        //¸¶¿ì½º Ŭ¸¯À¸·Î °ø°Ý
        case TutorialState.tutorial02_6:
            if (Input.GetMouseButtonDown(0))
            {
                Animator door = GameObject.Find("TutorialStartDoor").GetComponent <Animator>();
                door.SetBool("OpenDoor", true);

                typingTextConScript.typingTextStart(9);

                playerKeyButtonObj[6].SetActive(false);
                playerKeyButtonAni[6].enabled = false;

                // ´ÙÀ½²¨ tutorial03 ÀÔ´Ï´Ù ¶ó°í ¾Ë¸²
                nowTutorialNum = 6;
                uiPanel[0].SetActive(false);
                uiPanel[1].SetActive(false);

                tutorialState = TutorialState.wait;
            }
            break;

        // ÀüÅõ
        case TutorialState.tutorial03:

            if (Input.GetKeyDown(KeyCode.Space))
            {
                if (startOnce != false)
                {
                    return;
                }

                playerKeyButtonObj[4].SetActive(false);
                playerKeyButtonAni[4].enabled = false;

                uiPanel[0].SetActive(false);
                // ´ÙÀ½²¨ tutorial03_1 ÀÔ´Ï´Ù ¶ó°í ¾Ë¸²
                nowTutorialNum = 7;
                tutorialState  = TutorialState.wait;
                startOnce      = true;

                uiPanel[0].SetActive(false);
                Instantiate(tutorialMonsterPrefab, tutorialMonsterSpawnPos[0]);
            }
            break;

        // ¹«±â¸¦ ¾òÀ¸¸é ³ª¿À´Â ¼³¸í
        case TutorialState.tutorial03_1:
            if (startOnce == false)
            {
                startOnce = true;
                typingTextConScript.typingTextStart(10);

                playerKeyButtonObj[4].SetActive(true);
                playerKeyButtonAni[4].enabled = true;
                return;
            }
            if (Input.anyKeyDown)
            {
                playerKeyButtonObj[4].SetActive(false);
                playerKeyButtonAni[4].enabled = false;
                uiPanel[0].SetActive(false);
                tutorialState  = TutorialState.wait;
                nowTutorialNum = 8;
            }
            break;

        // 3_1 => update => 4_0
        case TutorialState.tutorial04_0:

            if (startOnce == false)
            {
                playerKeyButtonObj[4].transform.localPosition = new Vector3(193, -371.4f, 0);
                playerKeyButtonObj[4].SetActive(true);
                playerKeyButtonAni[4].enabled = true;


                startOnce = true;
                tutorialBasicObj.SetActive(true);

                forWeaponGetUiTutorialVer[count].enabled = true;
                typingTextConScript.tutorialDetail(count + 7);
                count++;
                return;
            }
            if (Input.GetKeyDown(KeyCode.Space))
            {
                if (count >= 4)
                {
                    playerKeyButtonObj[4].SetActive(false);
                    playerKeyButtonAni[4].enabled = false;

                    startOnce = false;
                    tutorialBasicObj.SetActive(false);
                    forWeaponGetUiTutorialVer[count - 1].enabled = false;

                    nowTutorialNum = 9;
                    tutorialState  = TutorialState.tutorial05_0;
                }
                else
                {
                    tutorialBasicObj.SetActive(true);
                    uiPanel[0].SetActive(false);
                    uiPanel[1].SetActive(false);

                    if (count != 0)
                    {
                        forWeaponGetUiTutorialVer[count - 1].enabled = false;
                    }
                    forWeaponGetUiTutorialVer[count].enabled = true;
                    typingTextConScript.tutorialDetail(count + 7);
                    count++;
                }
            }

            break;

        case TutorialState.tutorial05_0:
            if ((startOnce == false && Input.GetKeyDown(KeyCode.Return) &&
                 (playerUiSelectManagerScript.leftRightButtonToSwitchTheBoxWhenGetWeapon[0].interactable == false ||
                  playerUiSelectManagerScript.leftRightButtonToSwitchTheBoxWhenGetWeapon[1].interactable == false))

                || (startOnce == false && Input.GetKeyDown(KeyCode.Escape)))
            {
                playerKeyButtonObj[5].SetActive(true);
                playerKeyButtonAni[5].enabled = true;
                playerKeyButtonObj[5].transform.localPosition = new Vector3(-18.6f, -432.6f, 0);

                startOnce = true;
                uiPanel[0].SetActive(true);
                typingTextConScript.typingTextStart(11);
                tutorialState  = TutorialState.tutorial06_0;
                nowTutorialNum = 10;
            }
            break;

        case TutorialState.tutorial06_0:
            if (Input.GetKeyDown(KeyCode.I))
            {
                startOnce = false;

                playerKeyButtonObj[5].SetActive(false);
                playerKeyButtonAni[5].enabled = false;

                uiPanel[0].SetActive(false);
            }
            if (Input.GetKeyDown(KeyCode.Escape) && startOnce == false)
            {
                tutorialState  = TutorialState.tutorial07_0;
                nowTutorialNum = 11;
            }
            break;

        case TutorialState.tutorial07_0:

            if (startOnce == false)
            {
                playerKeyButtonObj[4].transform.localPosition = new Vector3(296.7f, -432, 0);
                playerKeyButtonObj[4].SetActive(true);
                playerKeyButtonAni[4].enabled = true;

                startOnce = true;
                uiPanel[0].SetActive(true);
                typingTextConScript.typingTextStart(12);
                return;
            }
            if (Input.GetKeyDown(KeyCode.Space))
            {
                nowTutorialNum = 12;
                startOnce      = false;

                playerKeyButtonObj[4].SetActive(false);
                playerKeyButtonAni[4].enabled = false;

                tutorialStageClearManagerScript.openDoor(0);
                uiPanel[0].SetActive(false);
                tutorialState = TutorialState.wait;
            }
            break;

        case TutorialState.tutorial08_0:

            if (playerPowerGetUiNo2Script.bgUiNo2Obj.activeInHierarchy == false)
            {
                tutorialStageClearManagerScript.openDoor(1);
                tutorialState = TutorialState.wait;
            }
            break;
        }
    }