public void Receive(Message message)
    {
        if (message.Version != 4)
        {
            return;
        }

        var buffer = new ByteBuffer(message.Payload);

        currentRoom = FWaitingRoom.GetRootAsFWaitingRoom(buffer);
    }
Beispiel #2
0
    public void Receive(Message message)
    {
        if (message.Version != 4)
        {
            return;
        }

        ControllersManager.Instance.OpenScene("Szczegóły gry");

        var          buffer   = new ByteBuffer(message.Payload);
        FWaitingRoom roomInfo = FWaitingRoom.GetRootAsFWaitingRoom(buffer);

        currentWaitingRoom = new WaitingRoomInfo(roomInfo);
        prezenter?.UpdateInfo(currentWaitingRoom, true);
    }