@@ -80,6 +80,7 @@ async void Start()
8080 // call with await keyword our async Task function
8181 await InitializeRemoteConfigAsync ( ) ;
8282
83+ // Set-up for how to send a custom Struct value
8384 userAttributes uaStruct = new userAttributes ( ) ;
8485 uaStruct . score = 10 ;
8586
@@ -120,20 +121,20 @@ private void RemoteConfigLoaded(ConfigResponse configResponse)
120121 {
121122 SetLocalization ( language ) ;
122123 }
124+
125+ season = ConfigManager . appConfig . GetString ( "Season" ) ;
126+ Debug . Log ( "RC Season " + ( ConfigManager . appConfig . GetString ( "Season" ) ) ) ;
123127
124128 activeHat = ConfigManager . appConfig . GetInt ( "ActiveHat" ) ;
125- // Debug.Log("RC Active Hat " + (ConfigManager.appConfig.GetInt("ActiveHat")));
129+ Debug . Log ( "RC Active Hat " + ( ConfigManager . appConfig . GetInt ( "ActiveHat" ) ) ) ;
126130
127131
128132 characterSize = ConfigManager . appConfig . GetFloat ( "CharacterSize" ) ;
129- // Debug.Log("RC Size " + (ConfigManager.appConfig.GetFloat("CharacterSize")));
133+ Debug . Log ( "RC Size " + ( ConfigManager . appConfig . GetFloat ( "CharacterSize" ) ) ) ;
130134
131135
132136 characterSpeed = ConfigManager . appConfig . GetFloat ( "CharacterSpeed" ) ;
133- //Debug.Log("RC Speed " + (ConfigManager.appConfig.GetFloat("CharacterSpeed")));
134-
135- season = ConfigManager . appConfig . GetString ( "Season" ) ;
136- //Debug.Log("RC Season " + (ConfigManager.appConfig.GetString("Season")));
137+ Debug . Log ( "RC Speed " + ( ConfigManager . appConfig . GetFloat ( "CharacterSpeed" ) ) ) ;
137138 break ;
138139 }
139140 }
@@ -144,22 +145,10 @@ public void FetchConfigs()
144145 ConfigManager . FetchConfigs < userAttributes , appAttributes > ( new userAttributes ( ) { } , new appAttributes ( ) { } ) ;
145146
146147 ConfigManager . FetchCompleted += RemoteConfigLoaded ;
147-
148- //activeHat = ConfigManager.appConfig.GetInt("ActiveHat");
149-
150- Debug . Log ( "RC Size " + ( ConfigManager . appConfig . GetFloat ( "CharacterSize" ) ) ) ;
151-
152- //characterSize = ConfigManager.appConfig.GetFloat("CharacterSize");
153-
154- Debug . Log ( "RC Speed " + ( ConfigManager . appConfig . GetFloat ( "CharacterSpeed" ) ) ) ;
155-
156- //characterSpeed = ConfigManager.appConfig.GetFloat("CharacterSpeed");
157-
158- Debug . Log ( "RC Active Hat " + ( ConfigManager . appConfig . GetInt ( "ActiveHat" ) ) ) ;
159- Debug . Log ( "Local Active Hat " + activeHat ) ;
160148 }
161149
162- // Can also use a Switch / Case check, as well as a Scriptable Object to hold the variable for the new language for more areas of the game to
150+ // Can also use a Switch / Case check, or store the localization variable in a Scriptable Object to hold the
151+ //variable for the new language for more areas of the game to reference
163152 public void SetLocalization ( string str )
164153 {
165154 if ( str == "English" )
0 commit comments