Example #1
0
    public void FreezeArbait()
    {
        //아르바이트가 얼지 않은 곳의 인덱스를 가져온다
        BossIceWall iceWall_instance = null;

        iceWallIndex = SpawnManager.Instance.FreezeArbait();

        if (iceWallIndex == -1)
        {
            return;
        }

        Debug.Log("Create Arbait Ice Wall");
        if (isIceWall_ArbaitOn [iceWallIndex] != true)
        {
            isIceWall_ArbaitOn [iceWallIndex] = true;

            iceWall_instance = iceWall_Arbait_Freeze [iceWallIndex].GetComponent <BossIceWall> ();
            iceWall_instance.nCountBreakWall     = 10;
            iceWall_instance.nCurrentArbaitIndex = iceWallIndex;
            iceWall_Arbait_Freeze [iceWallIndex].SetActive(true);
            iceWall_instance.StartFreezeArbait();

            fIceWallArbaitTimer = 0f;
        }
    }
Example #2
0
    public void DefreezeAllArbait()
    {
        fIceWallArbaitTimer = 0;
        SpawnManager.Instance.GetFreezeArbait();
        //얼어있는 아르바이트가 없다면 그냥 return;
        if (SpawnManager.Instance.checkList.Count == 0)
        {
            Debug.Log("No Freeze Arbait");
            return;
        }

        for (int i = 0; i < SpawnManager.Instance.checkList.Count; i++)
        {
            BossIceWall iceWall_Freeze = null;
            Debug.Log("Max Temp DefreezeAll Arbait");
            iceWall_Freeze = iceWall_Arbait_Freeze [SpawnManager.Instance.checkList[i]].GetComponent <BossIceWall> ();
            iceWall_Freeze.DeFreezeArbaitAll();
            iceWall_Arbait_Defreeze [SpawnManager.Instance.checkList[i]].SetActive(true);
            isIceWall_ArbaitOn [SpawnManager.Instance.checkList[i]] = false;

            BossArbaitDeFreeze bossDefreeze = null;
            bossDefreeze        = iceWall_Arbait_Defreeze [SpawnManager.Instance.checkList[i]].GetComponent <BossArbaitDeFreeze> ();
            bossDefreeze.nIndex = SpawnManager.Instance.checkList[i];
            bossDefreeze.StartDeFreeze();
        }
    }
Example #3
0
    public void ActiveIceWall()
    {
        BossIceWall iceWall_instance = null;

        iceWall_instance = iceWall.GetComponent <BossIceWall> ();
        if (iceWall.activeSelf == true)
        {
            isIceWallOn = false;

            nBossIceWallCount = 15;
            //iceWall_instance.StartDeFreezeRepair ();
            iceWall.SetActive(false);
        }
        else
        {
            Debug.Log("Active Ice Wall");
            iceWall.SetActive(true);
            isIceWallOn                      = true;
            fIceWallGenerateTimer            = 0f;
            iceWall_instance.nCountBreakWall = nBossIceWallCount;
            iceWall_instance.StartFreezeRepair();               //수리창 어는 것 시작
        }
    }