예제 #1
0
    public IEnumerator BossCreate(int _index)
    {
        yield return(null);

        if (bossConsumeItemInfo.nInviteMentCurCount != 0)
        {
            bossConsumeItemInfo.nInviteMentCurCount--;
        }

        SpawnManager.Instance.ApplyArbaitBossRepair();

        if (_index == (int)E_BOSSNAME.E_BOSSNAME_ICE)
        {
            //보스 리스트에서 해당 보스의 정보와 보스를 셋팅 한다.
            BossIce bossIce = bossList[0].GetComponent <BossIce> ();

            bossIce.nIndex            = _index;
            bossIce.bossInfo          = GameManager.Instance.bossInfo [_index];
            bossIce.bossEffect        = bossEffect;
            bossIce.bossBackGround    = bossBackGround;
            bossIce.bossPopUpWindow   = bossPopUpWindow;
            bossIce.sBossWeaponSprite = "Weapons/Boss/BOSS1_Weapon";
            bossIce.bossTimer_Obj     = bossTimer_Obj;
            bossIce.bossUIDisable     = bossUIDisable;
            bossIce.bossTalkPanel     = bossTalkPanel;
            bossIce.bossWeapon        = bossWeapon_Obj;
            bossIce.uiDisable         = uiDisable;
            bossIce.uiManager         = uiManager;
            bossIce.bossPanel         = bossPanel;
            bossIce.nCurLevel         = bossElementList [0].curLevel;
            bossIce.GuestPanel        = GuestPanel;

            bossIce.bossWord [(int)E_BOSSWORD.E_BOSSWORD_BEGIN]   = "저... 무기좀... 고쳐주세요";
            bossIce.bossWord [(int)E_BOSSWORD.E_BOSSWORD_PHASE01] = "흐으음~~~";
            bossIce.bossWord [(int)E_BOSSWORD.E_BOSSWORD_PHASE02] = "눈보라 ~~~!";
            bossIce.bossWord [(int)E_BOSSWORD.E_BOSSWORD_END]     = "그럼 이만!";

            bossList [0].SetActive(true);

            nBossIceLeftCount--;
            //사
        }

        else if (_index == (int)E_BOSSNAME.E_BOSSNAME_SASIN)
        {
            BossSasin bossSasin = bossList[1].GetComponent <BossSasin> ();

            bossSasin.nIndex            = _index;
            bossSasin.bossInfo          = GameManager.Instance.bossInfo [_index];
            bossSasin.bossEffect        = bossEffect;
            bossSasin.bossBackGround    = bossBackGround;
            bossSasin.bossPopUpWindow   = bossPopUpWindow;
            bossSasin.sBossWeaponSprite = "Weapons/Boss/BOSS1_Weapon";
            bossSasin.bossTimer_Obj     = bossTimer_Obj;
            bossSasin.bossTimer         = bossTimer;
            bossSasin.bossUIDisable     = bossUIDisable;
            bossSasin.bossTalkPanel     = bossTalkPanel;
            bossSasin.bossWeapon        = bossWeapon_Obj;
            bossSasin.uiDisable         = uiDisable;
            bossSasin.uiManager         = uiManager;
            bossSasin.bossPanel         = bossPanel;
            bossSasin.nCurLevel         = bossElementList [1].curLevel;
            bossSasin.GuestPanel        = GuestPanel;

            bossSasin.bossWord [(int)E_BOSSWORD.E_BOSSWORD_BEGIN]   = "내가 사신이지롱";
            bossSasin.bossWord [(int)E_BOSSWORD.E_BOSSWORD_PHASE01] = "나 화났어 ㅡ,ㅡ";
            bossSasin.bossWord [(int)E_BOSSWORD.E_BOSSWORD_PHASE02] = "뿌우우우우우!!!";
            bossSasin.bossWord [(int)E_BOSSWORD.E_BOSSWORD_END]     = "꾸앙 ㅇㅁㅇ...";

            bossList [1].SetActive(true);

            nBossSasinLeftCount--;
        }

        else if (_index == (int)E_BOSSNAME.E_BOSSNAME_FIRE)
        {
            Debug.Log("Fire Created!!!");

            BossFire bossFire = bossList[2].GetComponent <BossFire> ();



            bossFire.nIndex            = _index;
            bossFire.bossInfo          = GameManager.Instance.bossInfo [_index];
            bossFire.bossEffect        = bossEffect;
            bossFire.bossBackGround    = bossBackGround;
            bossFire.bossPopUpWindow   = bossPopUpWindow;
            bossFire.sBossWeaponSprite = "Weapons/Boss/deathnote";
            bossFire.bossTimer_Obj     = bossTimer_Obj;
            bossFire.bossTimer         = bossTimer;
            bossFire.bossUIDisable     = bossUIDisable;
            bossFire.bossTalkPanel     = bossTalkPanel;
            bossFire.bossWeapon        = bossWeapon_Obj;
            bossFire.uiDisable         = uiDisable;
            bossFire.uiManager         = uiManager;
            bossFire.bossPanel         = bossPanel;
            bossFire.nCurLevel         = bossElementList [2].curLevel;
            bossFire.GuestPanel        = GuestPanel;

            bossFire.bossWord [(int)E_BOSSWORD.E_BOSSWORD_BEGIN]   = "Fire~~~";
            bossFire.bossWord [(int)E_BOSSWORD.E_BOSSWORD_PHASE01] = "흐으음~~~";
            bossFire.bossWord [(int)E_BOSSWORD.E_BOSSWORD_PHASE02] = "파이어 ~~~!";
            bossFire.bossWord [(int)E_BOSSWORD.E_BOSSWORD_END]     = "Bye~~~!";

            bossList [2].SetActive(true);


            nBossFireLeftCount--;
        }

        else if (_index == (int)E_BOSSNAME.E_BOSSNAME_MUSIC)
        {
            BossMusic bossMusic = bossList[3].GetComponent <BossMusic> ();



            bossMusic.nIndex            = _index;
            bossMusic.bossInfo          = GameManager.Instance.bossInfo [_index];
            bossMusic.bossEffect        = bossEffect;
            bossMusic.bossBackGround    = bossBackGround;
            bossMusic.bossPopUpWindow   = bossPopUpWindow;
            bossMusic.sBossWeaponSprite = "Weapons/Boss/deathnote";
            bossMusic.bossTimer_Obj     = bossTimer_Obj;
            bossMusic.bossUIDisable     = bossUIDisable;
            bossMusic.bossTalkPanel     = bossTalkPanel;
            bossMusic.bossWeapon        = bossWeapon_Obj;
            bossMusic.uiDisable         = uiDisable;
            bossMusic.uiManager         = uiManager;
            bossMusic.bossPanel         = bossPanel;
            bossMusic.nCurLevel         = bossElementList [3].curLevel;
            bossMusic.GuestPanel        = GuestPanel;

            bossMusic.bossWord [(int)E_BOSSWORD.E_BOSSWORD_BEGIN]   = "소리 질러~!";
            bossMusic.bossWord [(int)E_BOSSWORD.E_BOSSWORD_PHASE01] = "Whoh~";
            bossMusic.bossWord [(int)E_BOSSWORD.E_BOSSWORD_PHASE02] = "Drop the beat~!";
            bossMusic.bossWord [(int)E_BOSSWORD.E_BOSSWORD_END]     = "SeeYa!";

            bossList [3].SetActive(true);
            nBossMusicLeftCount--;
        }
        BossPanelInfoSave();
    }
예제 #2
0
    public IEnumerator BossCreate(int _index)
    {
        yield return(null);



        if (bossConsumeItemInfo.nInviteMentCurCount != 0)
        {
            bossConsumeItemInfo.nInviteMentCurCount--;
        }

        SpawnManager.Instance.ApplyArbaitBossRepair();

        if (_index == (int)E_BOSSNAME.E_BOSSNAME_ICE)
        {
            //보스 리스트에서 해당 보스의 정보와 보스를 셋팅 한다.
            BossIce bossIce = bossList[0].GetComponent <BossIce> ();

            bossIce.nIndex             = _index;
            bossIce.bossInfo           = GameManager.Instance.bossInfo [_index];
            bossIce.bossEffect         = bossEffect;
            bossIce.bossBackGround     = bossBackGround;
            bossIce.backGroundScolling = backGroundScolling;
            bossIce.bossPopUpWindow    = bossPopUpWindow;
            bossIce.sBossWeaponSprite  = "Weapons/Boss/BOSS1_Weapon";
            bossIce.bossTimer_Obj      = bossTimer_Obj;
            bossIce.bossUIDisable      = bossUIDisable;
            bossIce.bossTalkPanel      = bossTalkPanel;
            bossIce.bossWeapon         = bossWeapon_Obj;
            bossIce.uiDisable          = uiDisable;
            bossIce.uiManager          = uiManager;
            bossIce.bossPanel          = bossPanel;
            bossIce.nCurLevel          = bossElementList [0].curLevel;
            bossIce.GuestPanel         = GuestPanel;
            bossIce.qusetManager       = questManager;

            bossIce.bossWord [(int)E_BOSSWORD.E_BOSSWORD_BEGIN]   = "여자친구를 조각해줘...";
            bossIce.bossWord [(int)E_BOSSWORD.E_BOSSWORD_PHASE01] = "날이 좀 추워진 거 같지 않아?";
            bossIce.bossWord [(int)E_BOSSWORD.E_BOSSWORD_PHASE02] = "나도 이젠 솔로 탈출인거임?";
            bossIce.bossWord [(int)E_BOSSWORD.E_BOSSWORD_END]     = "고마워!!";

            if (GameManager.Instance.cBossPanelListInfo [0].isFirstFightToIceBoss == false)
            {
                m_bIsFirstFightToIceBoss = true;
                StartCoroutine(StartShowBossHint(0));
                uiManager.uiBossFirstFightMark.SetActive(false);
            }

            else
            {
                //bossBackGround.StartChangeBackGroundToBossBackGround ();
                backGroundScolling.StartChangeBackground(eBackgroundMat.E_BackgroundMat_Boss);
                bossList [_index].SetActive(true);
            }

            nBossIceLeftCount--;
            //사
        }

        else if (_index == (int)E_BOSSNAME.E_BOSSNAME_SASIN)
        {
            BossSasin bossSasin = bossList[1].GetComponent <BossSasin> ();

            bossSasin.nIndex             = _index;
            bossSasin.bossInfo           = GameManager.Instance.bossInfo [_index];
            bossSasin.bossEffect         = bossEffect;
            bossSasin.bossBackGround     = bossBackGround;
            bossSasin.backGroundScolling = backGroundScolling;
            bossSasin.bossPopUpWindow    = bossPopUpWindow;
            bossSasin.sBossWeaponSprite  = "Weapons/Boss/BOSS1_Weapon";
            bossSasin.bossTimer_Obj      = bossTimer_Obj;
            bossSasin.bossTimer          = bossTimer;
            bossSasin.bossUIDisable      = bossUIDisable;
            bossSasin.bossTalkPanel      = bossTalkPanel;
            bossSasin.bossWeapon         = bossWeapon_Obj;
            bossSasin.uiDisable          = uiDisable;
            bossSasin.uiManager          = uiManager;
            bossSasin.bossPanel          = bossPanel;
            bossSasin.nCurLevel          = bossElementList [1].curLevel;
            bossSasin.GuestPanel         = GuestPanel;
            bossSasin.qusetManager       = questManager;

            bossSasin.bossWord [(int)E_BOSSWORD.E_BOSSWORD_BEGIN]   = "시련을 시작하지...";
            bossSasin.bossWord [(int)E_BOSSWORD.E_BOSSWORD_PHASE01] = "지금부터 시작이다!!";
            bossSasin.bossWord [(int)E_BOSSWORD.E_BOSSWORD_PHASE02] = "꽤 잘 버티는군";
            bossSasin.bossWord [(int)E_BOSSWORD.E_BOSSWORD_END]     = "인간치곤 대단하군";

            if (GameManager.Instance.cBossPanelListInfo [0].isFirstFightToSasinBoss == false)
            {
                m_bIsFirstFightToSasinBoss = true;
                StartCoroutine(StartShowBossHint(1));
                uiManager.uiBossFirstFightMark.SetActive(false);
            }
            else
            {
                //backGroundScolling.StartChangeBackground(eBackgroundMat.E_BackgroundMat_Boss);
                backGroundScolling.StartChangeBackground(eBackgroundMat.E_BackgroundMat_Boss);
                bossList [_index].SetActive(true);
            }
            //bossList [1].SetActive (true);

            nBossSasinLeftCount--;
        }

        else if (_index == (int)E_BOSSNAME.E_BOSSNAME_FIRE)
        {
            Debug.Log("Fire Created!!!");

            BossFire bossFire = bossList[2].GetComponent <BossFire> ();

            bossFire.nIndex             = _index;
            bossFire.bossInfo           = GameManager.Instance.bossInfo [_index];
            bossFire.bossEffect         = bossEffect;
            bossFire.bossBackGround     = bossBackGround;
            bossFire.backGroundScolling = backGroundScolling;
            bossFire.bossPopUpWindow    = bossPopUpWindow;
            bossFire.sBossWeaponSprite  = "Weapons/Boss/deathnote";
            bossFire.bossTimer_Obj      = bossTimer_Obj;
            bossFire.bossTimer          = bossTimer;
            bossFire.bossUIDisable      = bossUIDisable;
            bossFire.bossTalkPanel      = bossTalkPanel;
            bossFire.bossWeapon         = bossWeapon_Obj;
            bossFire.uiDisable          = uiDisable;
            bossFire.uiManager          = uiManager;
            bossFire.bossPanel          = bossPanel;
            bossFire.nCurLevel          = bossElementList [2].curLevel;
            bossFire.GuestPanel         = GuestPanel;
            bossFire.qusetManager       = questManager;

            bossFire.bossWord [(int)E_BOSSWORD.E_BOSSWORD_BEGIN]   = "왕관을 고칠 기회를 주지!";
            bossFire.bossWord [(int)E_BOSSWORD.E_BOSSWORD_PHASE01] = "벌써 지친건가?";
            bossFire.bossWord [(int)E_BOSSWORD.E_BOSSWORD_PHASE02] = "고작 이정도로 힘들어 하다니";
            bossFire.bossWord [(int)E_BOSSWORD.E_BOSSWORD_END]     = "인간치곤 괜찮은 실력이었다.";

            if (GameManager.Instance.cBossPanelListInfo [0].isFirstFightToFireBoss == false)
            {
                m_bIsFirstFightToFireBoss = true;
                StartCoroutine(StartShowBossHint(2));
                uiManager.uiBossFirstFightMark.SetActive(false);
            }
            else
            {
                //bossBackGround.StartChangeBackGroundToBossBackGround ();
                backGroundScolling.StartChangeBackground(eBackgroundMat.E_BackgroundMat_Boss);
                bossList [_index].SetActive(true);
            }

            //bossList [2].SetActive (true);


            nBossFireLeftCount--;
        }

        else if (_index == (int)E_BOSSNAME.E_BOSSNAME_MUSIC)
        {
            BossMusic bossMusic = bossList[3].GetComponent <BossMusic> ();



            bossMusic.nIndex             = _index;
            bossMusic.bossInfo           = GameManager.Instance.bossInfo [_index];
            bossMusic.bossEffect         = bossEffect;
            bossMusic.bossBackGround     = bossBackGround;
            bossMusic.backGroundScolling = backGroundScolling;
            bossMusic.bossPopUpWindow    = bossPopUpWindow;
            bossMusic.sBossWeaponSprite  = "Weapons/Boss/deathnote";
            bossMusic.bossTimer_Obj      = bossTimer_Obj;
            bossMusic.bossUIDisable      = bossUIDisable;
            bossMusic.bossTalkPanel      = bossTalkPanel;
            bossMusic.bossWeapon         = bossWeapon_Obj;
            bossMusic.uiDisable          = uiDisable;
            bossMusic.uiManager          = uiManager;
            bossMusic.bossPanel          = bossPanel;
            bossMusic.nCurLevel          = bossElementList [3].curLevel;
            bossMusic.GuestPanel         = GuestPanel;
            bossMusic.qusetManager       = questManager;

            bossMusic.bossWord [(int)E_BOSSWORD.E_BOSSWORD_BEGIN]   = "흥이 나질않아..";
            bossMusic.bossWord [(int)E_BOSSWORD.E_BOSSWORD_PHASE01] = "바로 그거야!!";
            bossMusic.bossWord [(int)E_BOSSWORD.E_BOSSWORD_PHASE02] = "제대로 놀아보자!!";
            bossMusic.bossWord [(int)E_BOSSWORD.E_BOSSWORD_END]     = "휴우 좋은 파티였어 브로~!";

            if (GameManager.Instance.cBossPanelListInfo [0].isFirstFightToMusicBoss == false)
            {
                m_bIsFirstFightToMusicBoss = true;
                StartCoroutine(StartShowBossHint(3));
                uiManager.uiBossFirstFightMark.SetActive(false);
            }
            else
            {
                backGroundScolling.StartChangeBackground(eBackgroundMat.E_BackgroundMat_Boss);
                bossList [_index].SetActive(true);
            }

            nBossMusicLeftCount--;
        }


        else if (_index == (int)E_BOSSNAME.E_BOSSNAME_DARAGON)
        {
            BossDragon bossDragon = bossList[4].GetComponent <BossDragon> ();



            bossDragon.nIndex             = _index;
            bossDragon.bossInfo           = GameManager.Instance.bossInfo [4];
            bossDragon.bossEffect         = bossEffect;
            bossDragon.bossBackGround     = bossBackGround;
            bossDragon.bossPopUpWindow    = bossPopUpWindow;
            bossDragon.backGroundScolling = backGroundScolling;
            bossDragon.sBossWeaponSprite  = "";
            bossDragon.bossTimer_Obj      = bossTimer_Obj;
            bossDragon.bossUIDisable      = bossUIDisable;
            bossDragon.bossTalkPanel      = bossTalkPanel;
            bossDragon.bossWeapon         = bossWeapon_Obj;
            bossDragon.uiDisable          = uiDisable;
            bossDragon.uiManager          = uiManager;
            bossDragon.bossPanel          = bossPanel;
            bossDragon.nCurLevel          = bossElementList [3].curLevel;
            bossDragon.GuestPanel         = GuestPanel;
            bossDragon.qusetManager       = questManager;

            bossDragon.bossWord [(int)E_BOSSWORD.E_BOSSWORD_BEGIN]   = "소리 질러~!";
            bossDragon.bossWord [(int)E_BOSSWORD.E_BOSSWORD_PHASE01] = "Whoh~";
            bossDragon.bossWord [(int)E_BOSSWORD.E_BOSSWORD_PHASE02] = "Drop the beat~!";
            bossDragon.bossWord [(int)E_BOSSWORD.E_BOSSWORD_END]     = "SeeYa!";

            //bossBackGround.StartChangeBackGroundToBossBackGround ();
            backGroundScolling.StartChangeBackground(eBackgroundMat.E_BackgroundMat_Boss);
            bossList [_index].SetActive(true);


            //Dragon Save Pass
            yield break;
        }
        bossConsumeItemInfo.BossInviteMentSaveTime();
        BossPanelInfoSave();
    }