コード例 #1
0
    // 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;
    }
コード例 #2
0
    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
ファイル: ClientConnect.cs プロジェクト: sknchan/LegacyRust
 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
ファイル: PlayerCache.cs プロジェクト: huokele/shadow-gun
 void uLink_OnDisconnectedFromServer(uLink.NetworkDisconnection mode)
 {
     Reset();
 }
コード例 #10
0
 void uLink_OnDisconnectedFromServer(uLink.NetworkDisconnection mode)
 {
     Debug.Log("restarting game");
     Application.LoadLevel(Application.loadedLevel);
 }