fix: playerprefs were not saved
This commit is contained in:
parent
f31f41ac8b
commit
e254385459
@ -172,6 +172,7 @@ public void PlayerValidateNameAndServerRoom(string _name, string _code)
|
|||||||
|
|
||||||
currentPlayer = new Player(_name);
|
currentPlayer = new Player(_name);
|
||||||
PlayerPrefs.SetString("lastplayername", _name);
|
PlayerPrefs.SetString("lastplayername", _name);
|
||||||
|
PlayerPrefs.Save();
|
||||||
|
|
||||||
//check if the room exists, if not display an error message
|
//check if the room exists, if not display an error message
|
||||||
CheckIfRoomExists(_code, room =>
|
CheckIfRoomExists(_code, room =>
|
||||||
|
Loading…
Reference in New Issue
Block a user