Пример #1
0
        private static IEnumerator AwaitLauncherConnection()
        {
            ILauncherLink conn = LauncherConnection.instance;

            if (conn == null)
            {
                yield return(null);

                yield break;
            }
            WaitForEndOfFrame waitForEndOfFrame = new WaitForEndOfFrame();

            while (conn.get_opening())
            {
                yield return(waitForEndOfFrame);
            }
        }
Пример #2
0
 public static IEnumerator InitializeConnection()
 {
     RuntimeData.CultureCodeChanged += OnCultureCodeChanged;
     s_launcherLink = ZaapLink.Create();
     if (s_launcherLink == null)
     {
         Log.Warning("Unable to get Zaap connection, falling back to NoConnection.", 42, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Configuration\\LauncherConnection.cs");
         s_launcherLink = NoConnection.instance;
     }
     else
     {
         Log.Info("Connection to Zaap: OK", 47, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Configuration\\LauncherConnection.cs");
     }
     s_requestingLanguage = true;
     s_launcherLink.RequestLanguage((Action <string>)OnLauncherLanguage, (Action <Exception>)OnLauncherLanguageError);
     while (s_requestingLanguage)
     {
         yield return(null);
     }
 }