Example #1
0
        private void OnServerDisconnect(NetworkConnection arg1, OnServerDisconnectMessage arg2)
        {
            var conn = _connections.Find(c => c.ConnectionId == arg1.connectionId);

            if (conn != null)
            {
                if (!string.IsNullOrEmpty(conn.PlayFabId))
                {
                    OnPlayerRemoved.Invoke(conn.PlayFabId);
                }

                _connections.Remove(conn);
            }
        }
 public void OnMirrorServerDisconnect(NetworkConnection conn, OnServerDisconnectMessage message)
 {
     OnServerDisconnect(conn);
 }