From e2543854594d2b298ac9d622464734c5926de1d0 Mon Sep 17 00:00:00 2001 From: Fangh Date: Thu, 1 Feb 2024 23:10:21 +0100 Subject: [PATCH] fix: playerprefs were not saved --- Assets/Scripts/GameManager.cs | 1 + 1 file changed, 1 insertion(+) 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 =>