void OpenJiaoYanPanelObj(SelectJiaoZhunDate selectVal)
    {
        if (GunAdjustObj.activeSelf)
        {
            if (!GunAdjustObj.activeSelf)
            {
                CloseAllJiaoYanPanel();
            }
            return;
        }

        IsMoveStar = false;
        StarObj.SetActive(false);
        switch (selectVal)
        {
        case SelectJiaoZhunDate.GunAdjustP1:
        case SelectJiaoZhunDate.GunAdjustP2:
            InitAdjustGunCross();
            GunAdjustObj.SetActive(true);
            if (!pcvr.bIsHardWare)
            {
                Screen.showCursor = true;
            }
            break;
        }
    }
Beispiel #2
0
    void OpenJiaoYanPanelObj(SelectJiaoZhunDate selectVal)
    {
        if (DirAdjustObj.activeSelf || PedalAdjustObj.activeSelf || GunAdjustObj.activeSelf)
        {
            if (!GunAdjustObj.activeSelf)
            {
                CloseAllJiaoYanPanel();
            }
            return;
        }

        IsMoveStar = false;
        StarObj.SetActive(false);
        switch (selectVal)
        {
        case SelectJiaoZhunDate.DirAdjust:
            InitAdjustDir();
            DirAdjustObj.SetActive(true);
            PedalAdjustObj.SetActive(false);
            GunAdjustObj.SetActive(false);
            IsJiaoZhunCross = false;
            SetPanelGunCrossCtrl.GetInstance().SetGunCrossActive(false);
            break;

        case SelectJiaoZhunDate.PedalAdjust:
            if (YouMenSt == YouMenTaBanEnum.JiaoTaBan)
            {
                TaBanAdjustSprite.spriteName = "JiaoZhunTB";
            }

            if (YouMenSt == YouMenTaBanEnum.YouMenTaBan)
            {
                TaBanAdjustSprite.spriteName = "JiaoZhunYMTB";
                pcvr.InitUpdateYouMenMinVal();
            }
            DirAdjustObj.SetActive(false);
            PedalAdjustObj.SetActive(true);
            GunAdjustObj.SetActive(false);
            IsJiaoZhunCross = false;
            SetPanelGunCrossCtrl.GetInstance().SetGunCrossActive(false);
            break;

        case SelectJiaoZhunDate.GunAdjust:
            InitAdjustGunCross();
            InitJiaoZhunGunUI();
            JiaoZhunZXCount = 0;
            DirAdjustObj.SetActive(false);
            PedalAdjustObj.SetActive(false);
            GunAdjustObj.SetActive(true);
            IsJiaoZhunCross = true;
            if (!pcvr.bIsHardWare)
            {
                Screen.showCursor = true;
            }
            SetPanelJiaoZhunDianCtrl.GetInstance().OpenJiaoZhunDian();
            break;
        }
    }
Beispiel #3
0
 void HandleClickStartBtEventP2()
 {
     if (PanelStVal == PanelState.JiaoYanPanel)
     {
         SelectJiaoZhunDate DtEnum = (SelectJiaoZhunDate)StarMoveCount;
         switch (DtEnum)
         {
         case SelectJiaoZhunDate.DirAdjust:
         case SelectJiaoZhunDate.PedalAdjust:
         case SelectJiaoZhunDate.GunAdjust:
             OpenJiaoYanPanelObj(DtEnum);
             break;
         }
     }
 }
    void OpenJiaoYanPanelObj(SelectJiaoZhunDate selectVal)
    {
        if (GunAdjustObj.activeSelf)
        {
            if (!GunAdjustObj.activeSelf)
            {
                CloseAllJiaoYanPanel();
            }
            return;
        }

        IsMoveStar = false;
        StarObj.SetActive(false);
        switch (selectVal)
        {
        case SelectJiaoZhunDate.GunAdjustP1:
        case SelectJiaoZhunDate.GunAdjustP2:
            InitAdjustGunCross();
            GunAdjustObj.SetActive(true);
            break;
        }
    }
Beispiel #5
0
    void HanldeClickEnterBtEvent()
    {
        if (PanelStVal == PanelState.SetPanel)
        {
            SelectSetPanelDate DtEnum = (SelectSetPanelDate)StarMoveCount;
            switch (DtEnum)
            {
            case SelectSetPanelDate.CoinStart:
                if (GlobalData.GetInstance().XUTOUBI >= 10)
                {
                    GlobalData.GetInstance().XUTOUBI = 0;
                }
                GlobalData.GetInstance().XUTOUBI++;

                SetCoinStartLabelInfo();
                break;

            case SelectSetPanelDate.GameDiff:
                if (GameDiffState >= 3)
                {
                    GameDiffState = 0;
                }
                GlobalData.GetInstance().GameDiff = GameDiffState.ToString();
                SetGameDiffState();
                break;

            case SelectSetPanelDate.GameMode:
                IsFreeGameMode = !IsFreeGameMode;
                GlobalData.GetInstance().IsFreeMode = IsFreeGameMode;
                SetGameModeState();
                break;

            case SelectSetPanelDate.Adjust:
            case SelectSetPanelDate.HardwareTest:
                ChangeGuiPanel();
                break;

            case SelectSetPanelDate.ResetFactory:
                ResetFactoryInfo();
                break;

            case SelectSetPanelDate.GameAudioSet:
                GameAudioVolume++;
                if (GameAudioVolume > 10)
                {
                    GameAudioVolume = 0;
                }
                GameAudioVolumeLB.text = GameAudioVolume.ToString();
                handleJsonObj.WriteToFileXml(fileName, "GameAudioVolume", GameAudioVolume.ToString());
                GlobalData.GameAudioVolume = GameAudioVolume;
                break;

            case SelectSetPanelDate.GameAudioReset:
                GameAudioVolume        = 7;
                GameAudioVolumeLB.text = GameAudioVolume.ToString();
                handleJsonObj.WriteToFileXml(fileName, "GameAudioVolume", "7");
                GlobalData.GameAudioVolume = GameAudioVolume;
                break;

            case SelectSetPanelDate.Exit:
                ExitSetPanle();
                break;
            }
        }
        else if (PanelStVal == PanelState.JiaoYanPanel)
        {
            SelectJiaoZhunDate DtEnum = (SelectJiaoZhunDate)StarMoveCount;
            switch (DtEnum)
            {
            case SelectJiaoZhunDate.DirAdjust:
            case SelectJiaoZhunDate.PedalAdjust:
            case SelectJiaoZhunDate.GunAdjust:
                OpenJiaoYanPanelObj(DtEnum);
                break;

            case SelectJiaoZhunDate.Exit:
                OpenCeShiPanel();
                SetPanelGunCrossCtrl.GetInstance().SetGunCrossActive(false);
                break;
            }
        }
        else if (PanelStVal == PanelState.CeShiPanel)
        {
            SelectCeShiDate DtEnum = (SelectCeShiDate)StarMoveCount;
            switch (DtEnum)
            {
            case SelectCeShiDate.DirTest:
            case SelectCeShiDate.PedalTest:
            case SelectCeShiDate.GunTest:
            case SelectCeShiDate.QiNangTest:
                if (QiNangTestPanelObj.activeSelf)
                {
                    OnClickQiNangTestEnvent();
                }
                else
                {
                    OpenTestPanelObj(DtEnum);
                }
                break;

            case SelectCeShiDate.Exit:
                OpenSetPanel();
                break;
            }
        }
    }