コード例 #1
0
        void Update()
        {
            if (_lbc != null)
            {
                _lbc.Service();
            }

            if (RegionsList != null)
            {
                if (this.ModalWindow.gameObject.activeInHierarchy)
                {
                    if (PunCockpit.Instance.debug)
                    {
                        Debug.Log("PunCockpit:OnRegionsPinged");
                    }

                    this.RegionListView.OnRegionListUpdate(RegionsList);
                }

                _lbc = null;

                RegionListLoadingFeedback.text = string.Empty;

                RegionsList = null;
            }
        }
コード例 #2
0
ファイル: MyClient.cs プロジェクト: Buscatrufas/Card-Game
 void update()
 {
     if (loadBalancingClient != null)
     {
         loadBalancingClient.Service();
     }
 }
コード例 #3
0
 /// <summary>
 /// Sends and receives messages by calling <see cref="LoadBalancingClient.Service"/> on the Photon client.
 /// <see cref="PhotonRoomConnection.Update"/> must be called on the connection while in-game.
 /// </summary>
 public virtual void Update()
 {
     if (State != ConnectionState.Disconnected && _photonClient.State != ClientState.Joined)
     {
         _photonClient.Service();
     }
 }
コード例 #4
0
 void Update()
 {
     if (loadBalancingClient != null)
     {
         loadBalancingClient.Service();      // easy but ineffective. should be refined to using dispatch every frame and sendoutgoing on demand
     }
 }
コード例 #5
0
 void Update()
 {
     if (client != null)
     {
         client.Service();
     }
 }
コード例 #6
0
ファイル: ConnectionTestBase.cs プロジェクト: SkaillZ/ubernet
        protected virtual IEnumerator DoUpdate(bool returned = false)
        {
            if (Provider == Providers.Photon && _client != null)
            {
                _client.Service();
                _client2.Service();
            }
            else
            {
                _connection?.Update();
                _connection2?.Update();
            }

            if (!returned)
            {
                if (_connection is MockConnection)
                {
                    yield return(null);
                }
                else
                {
                    yield return(new WaitForSeconds(0.05f));
                }
            }
        }
コード例 #7
0
    private void Update()
    {
        LoadBalancingClient client = DataObj.lbc;

        if (client != null)
        {
            client.Service();
        }
    }
コード例 #8
0
        public void Update()
        {
            LoadBalancingClient client = this.lbc;

            if (client != null)
            {
                client.Service();


                Text   uiText = this.StateUiText;
                string state  = client.State.ToString();
                if (uiText != null && !uiText.text.Equals(state))
                {
                    uiText.text = "State: " + state;
                }
            }
        }
コード例 #9
0
 public void UpdateService()
 {
     _loadBalancingClient.Service();
 }
コード例 #10
0
    //public void SendMessage(byte eventCode, object data, bool reliable = false) {
    //    SendMessage(eventCode, data, reliable, RaiseEventOptions.Default);
    //}


    public void Update()
    {
        client.Service();
    }
コード例 #11
0
 private void DispatcherTimer_Tick(object sender, EventArgs e)
 {
     loadBalancingClient.Service();
 }