UnityMultiplayerPlayground
UnityMultiplayerPlayground copied to clipboard
The random position spawn is not working
The client is not positioning the player in a random position. Also when I connect the clients the location is not correct on all clients and the server. I have the same code.
I'm just starting Dilmer's playlist for Multiplayer now, and discovered the same after the first 2 videos. I've been able to fix this with a few changes to 'PlayerControl.cs', but am hesitant to submit a PR yet, since I've not finished the rest of his series. For now, I've got this repo forked, and you can take a look at the change here:
You can solve that by adding a Connection Approval callback where you decide the waypoints.