public void endProcess(bool isSkipMode = false)
    {
        Debug.LogError("========= endProcess ======== now Delay Mode ? : " + _isDelayEndProcessMode);

        if (_isDelayEndProcessMode)
        {
            return;
        }

        GameManager.me.uiManager.goBtnRuneStudioSkip.SetActive(false);

        goMakeCompleteGuidePanel.gameObject.SetActive(false);

        GameManager.me.uiManager.menuCamera2.enabled  = true;
        GameManager.me.uiManager.uiMenuCamera.enabled = true;

        GameManager.me.uiManager.popupShop.goShopBlocker.gameObject.SetActive(false);

        evolveSourceBgSlot.hide();
        evolveSourceBgSlot.gameObject.SetActive(false);

        for (int i = 0; i < 10; ++i)
        {
            card10BgSlot[i].hide();
        }

        for (int i = 0; i < 2; ++i)
        {
            card2BgSlot[i].hide();
        }

        card10Container.gameObject.SetActive(false);
        card2Container.gameObject.SetActive(false);

        reinforceStarter.enabled = false;
        makeStarter.enabled      = false;
        transcendStarter.enabled = false;

        for (int i = 0; i < evolveController.Length; ++i)
        {
            evolveController[i].enabled = false;
        }

        //evolveStarter.enabled = false;

        blackBackground.gameObject.SetActive(false);

        reinforceSlotContainer.SetActive(false);

        resetPlaySpeed();

        cam256.gameObject.SetActive(false);
        cam512.gameObject.SetActive(false);

        hideCardStudio();

        spSkillIcon.cachedTransform.parent.gameObject.SetActive(false);

        switch (type)
        {
        case Type.None:
            break;

        case Type.Evolve:
            for (int i = 0; i < rootEvolve.Length; ++i)
            {
                rootEvolve[i].SetActive(false);
            }
            break;

        case Type.UnitMake:
            rootUnitMake.SetActive(false);
            rootPreUnitMake.SetActive(false);
            break;

        case Type.Reinforce:
            rootReinforce.SetActive(false);

            if (isSkipMode == false)
            {
                if (GameManager.me.uiManager.popupSummonDetail.gameObject.activeSelf)
                {
                    GameManager.me.uiManager.popupSummonDetail.hide();
                }
                if (GameManager.me.uiManager.popupSkillPreview.isEnabled)
                {
                    GameManager.me.uiManager.popupSkillPreview.isEnabled = false;
                }
                if (GameManager.me.uiManager.uiMenu.uiHero.itemDetailPopup.gameObject.activeSelf)
                {
                    GameManager.me.uiManager.uiMenu.uiHero.itemDetailPopup.hide();
                }
            }
            break;
        }

        if (_lastFsm != null)
        {
#if UNITY_EDITOR
            Debug.Log(_lastFsm);
#endif
            _lastFsm.enabled = false;
            _lastFsm.gameObject.SetActive(false);
        }

        megaMorpeAnim.gameObject.SetActive(false);

        gachaBgMaterial.SetColor("_Color", Color.black);

        resetter.reset(type);

        GameManager.setTimeScale = 1.0f;

        // 소환수 완료.
        if (TutorialManager.nowPlayingTutorial("T44", 10))
        {
            //EpiServer.instance.sendCompleteTutorial("T44");
            TutorialManager.instance.subStep = 11;
            TutorialManager.uiTutorial.hide();
            TutorialManager.instance.openDialog(200, 400, true, true);
        }
        // 소환수 완료.
        else if (TutorialManager.nowPlayingTutorial("T44", 14))
        {
            //14번도 생략.
            TutorialManager.instance.subStep = 15;
            TutorialManager.uiTutorial.hide();
            TutorialManager.uiTutorial.setArrowAndDim(19, 538, false);
        }
        else if (TutorialManager.nowPlayingTutorial("T48") || TutorialManager.nowPlayingTutorial("T49") || TutorialManager.nowPlayingTutorial("T50"))
        {
            TutorialManager.instance.subStep = 8;
            TutorialManager.instance.openDialog(200, 400, true, true, true);
            TutorialManager.uiTutorial.showBigSizeCharacter();
        }

        if (string.IsNullOrEmpty(GameDataManager.instance.stageClearRewardItem) == false)
        {
//			Debug.LogError("GameDataManager.instance.stageClearRewardItem : " + GameDataManager.instance.stageClearRewardItem);
            GameDataManager.instance.stageClearRewardItem = null;
            GameManager.me.uiManager.uiMenu.uiWorldMap.startNextStageAnimationStep2();
        }

        isPlayingMaking = false;
    }
Ejemplo n.º 2
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        EditorGUILayout.BeginHorizontal();
        if (GUILayout.Button("프리팹 분해"))
        {
            _editor.clear();



            for (int i = 1; i < 11; ++i)
            {
                Material mat;

                Vector2 v   = new Vector2(0.31f, 0.31f);
                Vector2 off = new Vector2();

                if (i < 10)
                {
                    mat = (Material)AssetDatabase.LoadAssetAtPath("Assets/12 UI_STUDIO/Materials/10card_0" + i + ".mat", typeof(Material));
                }
                else
                {
                    mat = (Material)AssetDatabase.LoadAssetAtPath("Assets/12 UI_STUDIO/Materials/10card_" + i + ".mat", typeof(Material));
                }

                switch (i)
                {
                case 1: off = new Vector2(-0.005f, 0.65f); break;

                case 2: off = new Vector2(0.24f, 0.65f); break;

                case 3: off = new Vector2(0.49f, 0.65f); break;

                case 4: off = new Vector2(0.73f, 0.65f); break;

                case 5: off = new Vector2(-0.005f, 0.344f); break;

                case 6: off = new Vector2(0.24f, 0.344f); break;

                case 7: off = new Vector2(0.49f, 0.344f); break;

                case 8: off = new Vector2(0.73f, 0.344f); break;

                case 9: off = new Vector2(-0.005f, 0.038f); break;

                case 10: off = new Vector2(0.24f, 0.038f); break;
                }

                mat.SetTextureScale("_MainTex", v);
                mat.SetTextureOffset("_MainTex", off);
            }
        }
        EditorGUILayout.EndHorizontal();


        EditorGUILayout.BeginHorizontal();
        if (GUILayout.Button("강화 시작"))
        {
            _editor.studioMain.sendEvent(_editor.studioMain.reinforceStarter);
        }
        EditorGUILayout.EndHorizontal();


        EditorGUILayout.BeginHorizontal();
        if (GUILayout.Button("제작 시작"))
        {
            _editor.studioMain.sendEvent(_editor.studioMain.makeStarter);
        }
        EditorGUILayout.EndHorizontal();


        EditorGUILayout.BeginHorizontal();
        if (GUILayout.Button("진화SS"))
        {
            RuneStudioMain.instance.playEvolveResult("UN61401001_0_0", "UN51401001_0_0", GameIDData.Type.Unit);
            //_editor.studioMain.sendEvent(_editor.studioMain.evolveController[4]);
        }
        EditorGUILayout.EndHorizontal();


        EditorGUILayout.BeginHorizontal();
        if (GUILayout.Button("진화S"))
        {
            RuneStudioMain.instance.playEvolveResult("UN51401001_0_0", "UN41401001_0_0", GameIDData.Type.Unit);
            //_editor.studioMain.sendEvent(_editor.studioMain.evolveController[3]);
        }
        EditorGUILayout.EndHorizontal();

        EditorGUILayout.BeginHorizontal();
        if (GUILayout.Button("진화A"))
        {
            RuneStudioMain.instance.playEvolveResult("UN41401001_0_0", "UN31401001_0_0", GameIDData.Type.Unit);
            //_editor.studioMain.sendEvent(_editor.studioMain.evolveController[2]);
        }
        EditorGUILayout.EndHorizontal();

        EditorGUILayout.BeginHorizontal();
        if (GUILayout.Button("진화B"))
        {
            RuneStudioMain.instance.playEvolveResult("UN31401001_0_0", "UN21401001_0_0", GameIDData.Type.Unit);
            //_editor.studioMain.sendEvent(_editor.studioMain.evolveController[1]);
        }
        EditorGUILayout.EndHorizontal();

        EditorGUILayout.BeginHorizontal();
        if (GUILayout.Button("진화C"))
        {
            RuneStudioMain.instance.playEvolveResult("UN21401001_0_0", "UN11301001_0_0", GameIDData.Type.Unit);
            //_editor.studioMain.sendEvent(_editor.studioMain.evolveController[0]);
        }
        EditorGUILayout.EndHorizontal();


        EditorGUILayout.BeginHorizontal();
        if (GUILayout.Button("초월"))
        {
            RuneStudioMain.instance.playTranscendResult("UN21401001_0_0", "UN11301001_0_0", GameIDData.Type.Unit);
            //_editor.studioMain.sendEvent(_editor.studioMain.evolveController[0]);
        }
        EditorGUILayout.EndHorizontal();



        EditorGUILayout.BeginHorizontal();
        if (GUILayout.Button("인게임 리셋 - 강화"))
        {
            _editor.reset(RuneStudioMain.Type.Reinforce);
        }
        EditorGUILayout.EndHorizontal();

        EditorGUILayout.BeginHorizontal();
        if (GUILayout.Button("인게임 리셋 - 제작"))
        {
            _editor.reset(RuneStudioMain.Type.UnitMake);
        }
        EditorGUILayout.EndHorizontal();

        EditorGUILayout.BeginHorizontal();
        if (GUILayout.Button("인게임 리셋 - 초월"))
        {
            _editor.reset(RuneStudioMain.Type.Transcend);
        }
        EditorGUILayout.EndHorizontal();
    }