Beispiel #1
0
    public void RequestSeat(PlayerDescriptor seatInfo)
    {
        Debug.Log("RequestSeat" + seatInfo.ToString());

        JSONObject seatRequest = new JSONObject();

        seatRequest.AddField("type", "SeatRequested");
        seatRequest.AddField("player", seatInfo.playerGuid);

        // send websocket connection ID
        // so server can associate the connection ID with the player ID
        seatRequest.AddField("connection", websocketClient.connectionID);

        websocketClient.SendToTabletop(seatRequest);
    }