Skip to content

Commit 3d9ebfa

Browse files
committed
Removed guid from ClientPrefs
1 parent 5958c9b commit 3d9ebfa

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Assets/BossRoom/Scripts/Shared/ClientPrefs.cs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,5 @@ public static void SetMusicVolume(float volume)
3232
PlayerPrefs.SetFloat("MusicVolume", volume);
3333
}
3434

35-
/// <summary>
36-
/// Either loads a Guid string from Unity preferences, or creates one and checkpoints it, then returns it.
37-
/// </summary>
38-
/// <returns>The Guid that uniquely identifies this client install, in string form. </returns>
39-
public static string GetGuid()
40-
{
41-
if (PlayerPrefs.HasKey("client_guid"))
42-
{
43-
return PlayerPrefs.GetString("client_guid");
44-
}
45-
46-
var guid = System.Guid.NewGuid();
47-
var guidString = guid.ToString();
48-
49-
PlayerPrefs.SetString("client_guid", guidString);
50-
return guidString;
51-
}
52-
5335
}
5436
}

0 commit comments

Comments
 (0)