void IPhotonPeerListener.OnStatusChanged(StatusCode statusCode) { switch (statusCode) { case StatusCode.Connect: _channelListener = _channelFactory.OnNetConnect(this); break; case StatusCode.Disconnect: if (_channelListener != null) { _channelListener.OnDisconnected(); } break; default: break; } }
protected override void OnDisconnect() { ChannelListener.OnDisconnected(); }
void IPhotonPeerListener.OnStatusChanged(StatusCode statusCode) { switch (statusCode) { case StatusCode.Connect: _channelListener = _channelFactory.OnNetConnect(this); break; case StatusCode.Disconnect: if (_channelListener != null) _channelListener.OnDisconnected(); break; default: break; } }