Esempio n. 1
0
    public void ClientDisconnected(NetworkMessage netMsg)
    {
        Debug.Log("Client disconnected. " + netMsg.conn.connectionId);
        Callipso.GameSession _s = sessions.Find(x => (x.agents.Find(e => e.user != null && e.user.connectionId == netMsg.conn.connectionId)));         // currently in session

        if (_s != null)
        {
            _s.KickPlayer(netMsg.conn.connectionId);          // remove the connection from the session
        }
    }