Esempio n. 1
0
    private void Start()
    {
        StartCoroutine(PlayerSetEffect(7));
        StartCoroutine(CameraVibrationEffect(7, 12, 0.5f));
        StartCoroutine(ShowEnermyText(7, "내가 대자연을 수호하겠다!"));
        StartCoroutine(PlayHeroSound(7, "말퓨리온", 영웅상태.게임시작_아군));
        mulligan.SetGoing(9.5f);

        int jobNum = (int)DataMng.instance.playData.deck[InGameDeck.nowDeck].job;

        StartCoroutine(BattleVsSound(0.2f, "말퓨리온", jobNum == 0 ? "말퓨리온" : "발리라"));
        for (int i = 0; i < characterImg.Length; i++)
        {
            characterImg[i].SetActive(false);
        }
        characterImg[jobNum].SetActive(true);
        switch (jobNum)
        {
        case 0:
            characterNameTxt.text    = "말퓨리온 스톰레이지";
            jobNameTxt.text          = "드루이드";
            playerHeroPower.material = druidMat;
            HeroManager.instance.heroPowerManager.SetHeroPower("말퓨리온", false);
            HeroManager.instance.heroPowerManager.SetHeroPower("말퓨리온", true);
            StartCoroutine(ShowPlayerText(10, "자연이 그대를 거부하리라!"));
            StartCoroutine(PlayHeroSound(10, "말퓨리온", 영웅상태.게임시작_적군));
            break;

        case 1:
            characterNameTxt.text    = "발리라 생귀나르";
            jobNameTxt.text          = "도적";
            playerHeroPower.material = rogueMat;
            HeroManager.instance.heroPowerManager.SetHeroPower("발리라", false);
            HeroManager.instance.heroPowerManager.SetHeroPower("말퓨리온", true);
            StartCoroutine(ShowPlayerText(10, "등...뒤를... 조심해..."));
            StartCoroutine(PlayHeroSound(10, "발리라", 영웅상태.게임시작_아군));
            break;
        }
    }