fix: playerprefs were not saved

This commit is contained in:
Fangh 2024-02-01 23:10:21 +01:00
parent f31f41ac8b
commit e254385459

View File

@ -172,6 +172,7 @@ public void PlayerValidateNameAndServerRoom(string _name, string _code)
currentPlayer = new Player(_name);
PlayerPrefs.SetString("lastplayername", _name);
PlayerPrefs.Save();
//check if the room exists, if not display an error message
CheckIfRoomExists(_code, room =>