Hi, I don’t know if this has been asked before but i’m creating a peer-to-peer quiz game. After login scene players can either choose to host a game or register an existing one.
Once the player chooses to host a game a new level/scene is loaded where his/her login name is shown along with buttons to host a game or return to the previous menu.
The problem is, I use playerprefs to store the playername but Host Scene always shows the name of the user who logged in recently. So my question is how can I store a player’s local data, like his name or country etc and use it in another level?
P.S. The game has only one server and one client, but in register menu there should be a list containing all of the hosted games, which again requires me to somehow store the data of each player locally and send them using RPC functions if necessay.
Many thanks in advance,
Gurel