// Token: 0x06003B9F RID: 15263 RVA: 0x000D531C File Offset: 0x000D351C
    private IEnumerator uLink_OnDisconnectedFromServer(uLink.NetworkDisconnection netDisconnect)
    {
        yield return(null);

        yield return(null);

        try
        {
            global::SoundPool.Drain();
        }
        catch (Exception ex)
        {
            Exception e = ex;
            Debug.LogException(e);
        }
        try
        {
            global::DestroysOnDisconnect.OnDisconnectedFromServer();
        }
        catch (Exception ex2)
        {
            Exception e2 = ex2;
            Debug.LogException(e2);
        }
        yield break;
    }
    void uLink_OnDisconnectedFromServer(uLink.NetworkDisconnection mode)
    {
        isQuickMode = true;

        if (reloadOnDisconnect && mode != uLink.NetworkDisconnection.Redirecting && Application.loadedLevel != -1)
        {
            Application.LoadLevel(Application.loadedLevel);
        }
    }
예제 #3
0
    void uLink_OnDisconnectedFromServer(uLink.NetworkDisconnection mode)
    {
        Printf("Disconnected " + mode);

        CancelInvoke();
        Destroy(this.gameObject);

        // we don't want to fetch local ppi here
        // it will be done later after round results display
        //PPIManager.Instance.FetchPPIFromCloud();

        Game.Instance.LoadMainMenu();
    }
예제 #4
0
 private void uLink_OnDisconnectedFromServer(uLink.NetworkDisconnection netDisconnect)
 {
     if (this.levelLoader)
     {
         UnityEngine.Object.Destroy(this.levelLoader);
     }
     try
     {
         DisableOnConnectedState.OnDisconnected();
     }
     finally
     {
         UnityEngine.Object.Destroy(base.gameObject);
     }
 }
예제 #5
0
    void uLink_OnDisconnectedFromServer(uLink.NetworkDisconnection mode)
    {
        if (mode == uLink.NetworkDisconnection.Redirecting)
        {
            //Code executed when the player goes into the portal.
            uLink.Network.isMessageQueueRunning = false;
            string level = (Application.loadedLevelName == "ClientWorld1") ? "ClientWorld2" : "ClientWorld1";

            Application.LoadLevel(level);
        }
        else
        {
            Application.LoadLevel(Application.loadedLevel);
        }
    }
예제 #6
0
    private void uLink_OnDisconnectedFromServer(uLink.NetworkDisconnection netDisconnect)
    {
        NetError lastKickReason = ServerManagement.GetLastKickReason(true);

        this.LogDisconnect(lastKickReason, new uLink.NetworkDisconnection?(netDisconnect));
        DisableOnConnectedState.OnDisconnected();
        ConsoleSystem.Run("gameui.show", false);
        this.LoadBackground();
        if (lastKickReason == NetError.NoError)
        {
            this.ShowInformation("Disconnected from server.");
        }
        else
        {
            this.ShowInformation(string.Concat("Disconnected (", lastKickReason.NiceString(), ")"));
        }
        LoadingScreen.Hide();
    }
예제 #7
0
 // Token: 0x060019FF RID: 6655 RVA: 0x000651B4 File Offset: 0x000633B4
 private void uLink_OnDisconnectedFromServer(uLink.NetworkDisconnection blowme)
 {
     this.DestroyManually();
 }
예제 #8
0
 private IEnumerator uLink_OnDisconnectedFromServer(uLink.NetworkDisconnection netDisconnect)
 {
     return(new < uLink_OnDisconnectedFromServer > c__Iterator40());
 }
예제 #9
0
 void uLink_OnDisconnectedFromServer(uLink.NetworkDisconnection mode)
 {
     Reset();
 }
 void uLink_OnDisconnectedFromServer(uLink.NetworkDisconnection mode)
 {
     Debug.Log("restarting game");
     Application.LoadLevel(Application.loadedLevel);
 }