示例#1
0
 public override void OnEnter()
 {
     LegionLogic.GetInstance();
     GuideManager.Instance.InitGuideState();//tOdo为什么删掉了
     //预先加载主城场景
     LoadingLogic.AddCustomProgress(2);
     SceneLoadManager.LoadOTALevelGroupAsync("MainLandView", SceneLoadBegin, SceneLoadFailed, SceneLoadLoading, SceneLoadFinished);
 }
示例#2
0
        private void StartInitialize()
        {
            EB.Debug.Log("FlowControlAction.StartInitialize=====>");
            //设置性能配置
            PerformanceManager.Instance.UseScene(GameFlowHotfixController.ActiveStateName);
            //设置相机配置
            InitializeCamera();

            //异步加载场景跟ui
            HudLoadManager.LoadHudAsync(GameFlowHotfixController.ActiveStateName, HudLoadComplete);
            SceneLoadManager.LoadOTALevelGroupAsync(GameFlowHotfixController.ActiveStateName, SceneLoadBegin, SceneLoadFailed, SceneLoadLoading, SceneLoadFinished);

            //性能
            var perfInfo = PerformanceManager.Instance.CurrentEnvironmentInfo;

            SetQualityLevel(PerformanceManager.Instance.PerformanceInfo.CpuProfileName);
            Shader.globalMaximumLOD              = perfInfo.lod;
            QualitySettings.blendWeights         = (BlendWeights)perfInfo.blendWeights;
            QualitySettings.antiAliasing         = (int)perfInfo.msaa;
            QualitySettings.anisotropicFiltering = (AnisotropicFiltering)perfInfo.aniso;
            EB.Debug.Log("<=====FlowControlAction.StartInitialize");
        }