Example #1
0
        public override void OnDisconnectedFromPhoton()
        {
            base.OnDisconnectedFromPhoton();

            if (MAX_RECONNECT_RETRIES != ReconnectRetries)
            {
                StartCoroutine(ReconnectCoroutine());
            }
            else
            {
                ReconnectFailed?.Invoke();
            }

#if DEVELOPMENT_BUILD || UNITY_EDITOR
            string msg = string.Format("[{0}] Disconnected from Photon", this.GetType().Name);
            Debug.Log(msg);
#endif
        }
Example #2
0
 /// <summary>
 /// Called when the client permanently stopped reconnecting.
 /// </summary>
 protected virtual void OnReconnectFailed()
 {
     ReconnectFailed?.Invoke(this, EventArgs.Empty);
 }