Unity Photon Engine 2.0 (PUN) MatchMaking Example with AutoConnect and Connect By Name to the room
Simple Code and Easy to Use.
Tested on Unity 2018.3 and PUN 2.0 (ver 2.6)
- Copy PhotonMaster.cs from PhotonMatch folder to your Asset/Scripts folder
- Add this script to GameObject and Connect all references.
- Create and Connect buttons to ConnectRandom() and ConnectByName() public functions.
- Add PhotonView Component to GameObject
- Enjoy it!
ExampleProject Folder has Simple Multiplayer Clicker game