Esempio n. 1
0
 public static LootLockerConfig Get()
 {
     if (settingsInstance != null)
     {
         return(settingsInstance);
     }
     settingsInstance = Resources.Load <LootLockerConfig>("Config/LootLockerConfig");
     return(settingsInstance);
 }
Esempio n. 2
0
        public static bool CreateNewSettings(string apiKey, string gameVersion, platformType platform, bool onDevelopmentMode, string domainKey, DebugLevel debugLevel = DebugLevel.Off, bool allowTokenRefresh = false)
        {
            settingsInstance = Resources.Load <LootLockerConfig>("Config/LootLockerConfig");

            if (settingsInstance == null)
            {
                settingsInstance = CreateInstance <LootLockerConfig>();
            }

            settingsInstance.apiKey            = apiKey;
            settingsInstance.game_version      = gameVersion;
            settingsInstance.platform          = platform;
            settingsInstance.developmentMode   = onDevelopmentMode;
            settingsInstance.currentDebugLevel = debugLevel;
            settingsInstance.allowTokenRefresh = allowTokenRefresh;
            settingsInstance.domainKey         = domainKey;

            return(true);
        }