We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2973861 commit 346bb7fCopy full SHA for 346bb7f
Assets/BossRoom/Scripts/Shared/ProfileManager.cs
@@ -8,24 +8,9 @@ public static class ProfileManager
8
{
9
public const string AuthProfileCommandLineArg = "-AuthProfile";
10
11
- static bool s_IsProfileSet = false;
+ static string s_Profile;
12
13
- static string s_Profile = "";
14
-
15
- public static string Profile
16
- {
17
- get
18
19
- if (!s_IsProfileSet)
20
21
- s_Profile = GetProfile();
22
- s_IsProfileSet = true;
23
- }
24
25
- return s_Profile;
26
27
- private set => s_Profile = value;
28
+ public static string Profile => s_Profile ??= GetProfile();
29
30
static string GetProfile()
31
0 commit comments