@@ -8,80 +8,80 @@ public class LootLockerEditorData
8
8
{
9
9
private static string prefix = PlayerSettings . productGUID . ToString ( ) + ".LootLocker." ;
10
10
11
- private static string adminToken = "AdminToken" ;
12
- private static string selectedGameID = "SelectedGameID" ;
13
- private static string selectedGameName = "SelectedGameName" ;
14
- private static string environment = "Environment" ;
15
- private static string firstTimeWelcome = "FirstTimeWelcome" ;
16
- private static string newSession = "NewSession" ;
11
+ private static string adminToken = prefix + "AdminToken" ;
12
+ private static string selectedGameID = prefix + "SelectedGameID" ;
13
+ private static string selectedGameName = prefix + "SelectedGameName" ;
14
+ private static string environment = prefix + "Environment" ;
15
+ private static string firstTimeWelcome = prefix + "FirstTimeWelcome" ;
16
+ private static string newSession = prefix + "NewSession" ;
17
17
18
18
public static void ClearLootLockerPrefs ( )
19
19
{
20
- EditorPrefs . DeleteKey ( prefix + adminToken ) ;
21
- EditorPrefs . DeleteKey ( prefix + selectedGameID ) ;
22
- EditorPrefs . DeleteKey ( prefix + selectedGameName ) ;
23
- EditorPrefs . DeleteKey ( prefix + environment ) ;
24
- EditorPrefs . DeleteKey ( prefix + firstTimeWelcome ) ;
25
- EditorPrefs . DeleteKey ( prefix + newSession ) ;
20
+ EditorPrefs . DeleteKey ( adminToken ) ;
21
+ EditorPrefs . DeleteKey ( selectedGameID ) ;
22
+ EditorPrefs . DeleteKey ( selectedGameName ) ;
23
+ EditorPrefs . DeleteKey ( environment ) ;
24
+ EditorPrefs . DeleteKey ( firstTimeWelcome ) ;
25
+ EditorPrefs . DeleteKey ( newSession ) ;
26
26
}
27
27
28
28
public static void SetAdminToken ( string _adminToken )
29
29
{
30
- EditorPrefs . SetString ( prefix + adminToken , _adminToken ) ;
31
- EditorPrefs . SetBool ( prefix + firstTimeWelcome , false ) ;
32
- EditorPrefs . SetBool ( prefix + newSession , true ) ;
30
+ EditorPrefs . SetString ( adminToken , _adminToken ) ;
31
+ EditorPrefs . SetBool ( firstTimeWelcome , false ) ;
32
+ EditorPrefs . SetBool ( newSession , true ) ;
33
33
}
34
34
35
35
public static string GetAdminToken ( )
36
36
{
37
- return EditorPrefs . GetString ( prefix + adminToken ) ;
37
+ return EditorPrefs . GetString ( adminToken ) ;
38
38
}
39
39
40
40
public static void SetSelectedGame ( string _selectedGame )
41
41
{
42
- EditorPrefs . SetInt ( prefix + selectedGameID , int . Parse ( _selectedGame ) ) ;
42
+ EditorPrefs . SetInt ( selectedGameID , int . Parse ( _selectedGame ) ) ;
43
43
}
44
44
public static void SetSelectedGameName ( string _selectedGameName )
45
45
{
46
- EditorPrefs . SetString ( prefix + selectedGameName , _selectedGameName ) ;
46
+ EditorPrefs . SetString ( selectedGameName , _selectedGameName ) ;
47
47
}
48
48
49
49
public static int GetSelectedGame ( )
50
50
{
51
- return EditorPrefs . GetInt ( prefix + selectedGameID ) ;
51
+ return EditorPrefs . GetInt ( selectedGameID ) ;
52
52
}
53
53
54
54
public static string GetSelectedGameName ( )
55
55
{
56
- return EditorPrefs . GetString ( prefix + selectedGameName ) ;
56
+ return EditorPrefs . GetString ( selectedGameName ) ;
57
57
}
58
58
59
59
public static void SetEnvironmentStage ( )
60
60
{
61
- EditorPrefs . SetString ( prefix + environment , "Stage" ) ;
61
+ EditorPrefs . SetString ( environment , "Stage" ) ;
62
62
}
63
63
64
64
public static void SetEnvironmentLive ( )
65
65
{
66
- EditorPrefs . SetString ( prefix + environment , "Live" ) ;
66
+ EditorPrefs . SetString ( environment , "Live" ) ;
67
67
}
68
68
69
69
public static bool IsEnvironmentStage ( )
70
70
{
71
- return EditorPrefs . GetString ( prefix + environment ) . Equals ( "Stage" ) ;
71
+ return EditorPrefs . GetString ( environment ) . Equals ( "Stage" ) ;
72
72
}
73
73
74
74
public static bool ShouldAutoShowWindow ( )
75
75
{
76
- var result = EditorPrefs . GetBool ( prefix + firstTimeWelcome , true ) ;
77
- EditorPrefs . SetBool ( prefix + firstTimeWelcome , false ) ;
76
+ var result = EditorPrefs . GetBool ( firstTimeWelcome , true ) ;
77
+ EditorPrefs . SetBool ( firstTimeWelcome , false ) ;
78
78
return result ;
79
79
}
80
80
81
81
public static bool IsNewSession ( )
82
82
{
83
- bool result = EditorPrefs . GetBool ( prefix + newSession , false ) ;
84
- EditorPrefs . SetBool ( prefix + newSession , false ) ;
83
+ bool result = EditorPrefs . GetBool ( newSession , false ) ;
84
+ EditorPrefs . SetBool ( newSession , false ) ;
85
85
return result ;
86
86
}
87
87
}
0 commit comments