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 }
/// <summary> /// Called when the client permanently stopped reconnecting. /// </summary> protected virtual void OnReconnectFailed() { ReconnectFailed?.Invoke(this, EventArgs.Empty); }