Hi there,
I have a problem with the code of Remote config.
My WORKING CODE with 3.3.2 is:
public static bool Maintenance;
public static string EstimatedQuequeTime;
public static string StartingTimeMaintenance;
public static string DownloadStuffs;
public static string EstimatedMaintenanceTime;
public static bool ShowEndSeason;
private struct userAttributes { }
private struct appAttributes { }
[System.Obsolete]
void Awake()
{
//Start Updating Remote
UpdateRemote();
}
[System.Obsolete]
public void UpdateRemote()
{
//Start updating game files
ConfigManager.FetchCompleted += ApplyRemoteChanges;
ConfigManager.FetchConfigs<userAttributes, appAttributes>(new userAttributes(), new appAttributes());
}
[System.Obsolete]
private void ApplyRemoteChanges(ConfigResponse configResponse)
{
switch(configResponse.requestOrigin)
{
case ConfigOrigin.Default:
//No settings modified
case ConfigOrigin.Cached:
//No settings modified, loading from cache.
case ConfigOrigin.Remote:
//MODIFIED SETTINGS! Load new values...
SetSettings();
break;
}
}
[System.Obsolete]
void SetSettings()
{
Maintenance = ConfigManager.appConfig.GetBool("MaintenanceMode");
EstimatedQuequeTime = ConfigManager.appConfig.GetString("EstimatedQuequeTime");
StartingTimeMaintenance = ConfigManager.appConfig.GetString("StartingTimeMaintenance");
DownloadStuffs = ConfigManager.appConfig.GetString("DownloadStuffs");
ShowEndSeason = ConfigManager.appConfig.GetBool("ShowEndSeason");
EstimatedMaintenanceTime = ConfigManager.appConfig.GetString("EstimatedMaintenanceTime");
}
Now with remote config 4.1.1 (after updating from 3.3.2) I have an unspecified error message, I search in every corner of the internet and also today I don’t find a solution, here’s the error message:
Assets\Scripts\General\Remote.cs(34,37): error CS0246: The type or namespace name 'ConfigResponse' could not be found (are you missing a using directive or an assembly reference?)
please send help