Пример #1
0
        private static IEnumerator GoToInitializationFailedState(InitializationFailure cause)
        {
            Log.Error("Switching to initialization failed state.", 280, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Main.cs");
            yield return(AudioManager.Unload());

            yield return(RuntimeData.Unload());

            if (AssetManagerError.op_Implicit(RuntimeData.error) != 0)
            {
                yield return(GoToCatastrophicFailureState(InitializationFailure.RuntimeDataLoad));

                yield break;
            }
            yield return(ApplicationStarter.ConfigureLocalAssetManager());

            if (!AssetManager.get_isReady())
            {
                yield return(GoToCatastrophicFailureState(cause));

                yield break;
            }
            yield return(AudioManager.Load());

            yield return(RuntimeData.LoadOffline());

            InitializationFailedState initializationFailedState = new InitializationFailedState(cause);

            StateManager.GetDefaultLayer().GetChainEnd().SetChildState(initializationFailedState, 0);
        }