Hi, I would like to ask how to create a multiplayer mobile game? It will be the game for 2 or 4 players. Players can connect to the game via Bluetooth or the same wifi network. I have no experience with this. What should I learn before making my game? Which libraries, assets or servers for connections via wi-fi should I use? I have read about UNet and Photon, but I don't know which is better.
It's definitely a good idea to use an existing networking solution, especially if you are new to networking. As far as I am aware, only UNET's LLAPI networking transport works over Bluetooth. They mentioned that in a presentation a few years ago, but I don't know anyone who actually tried it. That being said, UNET is deprecated so you should use Mirror (our UNET fork, which still supports LLAPI), or any of the other networking libraries like Photon/MLAPI/etc. Try a few and use what works best for you.
I'd start with picking either wifi or bluetooth, instead of trying to design for both with no experience. Photon is for internet connected games (there's a few flavors of Photon, but most require cloud connectivity), and Unet is a buggy unfinished dead end. Here's some of the available options: https://forum.unity.com/threads/wha...of-available-network-solutions-assets.609088/