Esempio n. 1
0
    public void OnJoinRandomClicked()
    {
        Processing();
        Globals.Instance.multiplayerClient.connector.SetDisplayName(userNameText.text);

        LNSJoinRoomFilter filter = new LNSJoinRoomFilter();

        filter.Set(RoomFilters.MAP_KEY, RoomFilters.MAP_VALUE_MIRAGE);
        Globals.Instance.multiplayerClient.connector.JoinRandomRoom(filter);
    }
Esempio n. 2
0
    public static LNSJoinRoomFilter FromReader(NetPacketReader reader)
    {
        int filterCount = reader.GetByte();

        if (filterCount > 0)
        {
            LNSJoinRoomFilter o = new LNSJoinRoomFilter();
            for (int i = 0; i < filterCount; i++)
            {
                o.Set(reader.GetByte(), reader.GetByte());
            }
            return(o);
        }
        return(null);
    }