diff --git a/Assets/Scripts/GameManager.cs b/Assets/Scripts/GameManager.cs index 93d919e..ce3b778 100644 --- a/Assets/Scripts/GameManager.cs +++ b/Assets/Scripts/GameManager.cs @@ -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 =>