コード例 #1
0
    public static JCSubtitlesPanel OpenUI()
    {
        Object prefab = PrefabLoader.loadFromPack("JC/JCSubtitlesPanel");

        if (prefab != null)
        {
            GameObject obj = Instantiate(prefab) as GameObject;
            RED.AddChild(obj, DBUIController.mDBUIInstance._bottomRoot);
            _this = obj.GetComponent <JCSubtitlesPanel>();
        }
        return(_this);
    }
コード例 #2
0
    void Start()
    {
//		#region Add by jc
//		//预先创建副本
//		pveView.SetActive(false);
//		#endregion


        UITopAndBottomTouch = Core.Data.temper.TempTouch;

        if (MailReveicer.Instance == null)
        {
            MailReveicer.Create();
        }

        // 开启 统计数据 core
        Core.Data.ActivityManager.InitAccount();

        LoadGameUI();
        CheckJump();

        RefreshUserInfoWithoutShow();

        if (Core.SM.LastScenesName == SceneName.LOGIN_SCENE)
        {
            if (Core.Data.playerManager.RTData.IsRegister)
            {
                ConsoleEx.DebugLog("isGuiding:" + Core.Data.guideManger.isGuiding.ToString(), ConsoleEx.YELLOW);
                if (Core.Data.guideManger.isGuiding)
                {
                    Core.Data.guideManger.Init();
                    BuildScene.mInstance.sunCamera.Show_Key = false;
                    m_bCanClick = true;
                }
                else
                {
                    StartCoroutine("CheckSunState");
                }
            }
        }
        else if (Core.SM.LastScenesName == SceneName.GameMovie)
        {
        }
        else if (Core.SM.LastScenesName == SceneName.GAME_BATTLE)
        {
#if NewGuide
            if (Core.Data.temper.currentBattleType == TemporyData.BattleType.FightWithFulisa)
            {
                HiddenFor3D_UI(false);
                JCSubtitlesPanel.OpenUI().OnClose = () =>
                {
                    ChAnimUI1.OpenUI(DBUIController.mDBUIInstance._TopRoot).OnFinished = () =>
                    {
                        ShowFor2D_UI();
                        StartCoroutine("CheckSunState");
                    };
                };
            }
#else
            //现在的引导第一次是从战斗场景过来的
            if (!Core.Data.playerManager.RTData.IsRegister)
            {
                HiddenFor3D_UI(false);
                JCSubtitlesPanel.OpenUI().OnClose = () =>
                {
                    JCCreateRole.OpenUI();
                };
            }
#endif
            else
            {
                SunMoveFinish();
            }
        }
        if (LuaTest.Instance.OpenFirstCharge == false)
        {
            if (Core.Data.ActivityManager.firstIOR == null || Core.Data.rechargeDataMgr._canGainFirstAward == -1)
            {
                ActivityNetController.GetInstance().GetFirstChargeStateRequest();
            }
        }

        //added by zhangqiang
        //发送招募时间同步消息
        Core.Data.zhaomuMgr.SendZhaomuStateMsg();

        if (Core.Data.vipManager.IsFirstLogin_Vip)
        {
            UIDragonMallMgr.GetInstance().VipRequest();
            if (Core.Data.vipManager.vipStatus != null)
            {
                UIDragonMallMgr.GetInstance().SeViptPercent(Core.Data.vipManager.vipStatus.toNextLevle / 100, Core.Data.vipManager.vipStatus.totalCach / 100);
            }
        }
        if (BuildScene.mInstance != null)
        {
            BuildScene.mInstance.CheckFragBuilding();
        }
    }