Exemplo n.º 1
0
            void ExitGames.Client.Photon.IPhotonPeerListener.OnStatusChanged(ExitGames.Client.Photon.StatusCode statusCode)
            {
                if (statusCode == ExitGames.Client.Photon.StatusCode.Connect)
                {
                    if (_LinkState.LinkSuccess != null)
                    {
                        _LinkState.LinkSuccess.Invoke();
                    }
                    _Core.Initial();
                }
                else if (statusCode == ExitGames.Client.Photon.StatusCode.QueueOutgoingReliableWarning)
                {
                }
                else if (statusCode == ExitGames.Client.Photon.StatusCode.QueueIncomingReliableWarning)
                {
                }
                else if (statusCode == ExitGames.Client.Photon.StatusCode.QueueOutgoingAcksWarning)
                {
                }
                else if (statusCode == ExitGames.Client.Photon.StatusCode.QueueSentWarning)
                {
                }
                else if (statusCode == ExitGames.Client.Photon.StatusCode.SendError)
                {
                }
                else
                {
                    if (_Core != null)
                    {
                        _Core.Finial();
                    }
                    if (_LinkState.LinkFail != null)
                    {
                        _LinkState.LinkFail(statusCode.ToString() + ":" + ((_Peer != null) ? _Peer.PeerState.ToString() : "peer == null"));
                    }
                    _Peer = null;
                }

                //System.Diagnostics.Debug.WriteLine(statusCode.ToString());
            }
Exemplo n.º 2
0
 void OnFailedToConnectToPhoton(ExitGames.Client.Photon.StatusCode status)
 {
     Debug.Log("Failed to connect to Photon: " + status);
 }
Exemplo n.º 3
0
 public void OnStatusChanged(ExitGames.Client.Photon.StatusCode statusCode)
 {
     Debug.Log("으아아");
 }
Exemplo n.º 4
0
 void OnFailedToConnectToPhoton(ExitGames.Client.Photon.StatusCode status)
 {
     //Debug.Log("Failed to connect to Photon: " + status);
     failConnectMesage = "Failed to connect to Photon: " + status;
     HudWarningLabel.Add(failConnectMesage, Color.red, 5);
 }