Beispiel #1
0
        static bool LoadConfig()
        {
            LootLockerSDKAdminManager.DebugMessage("Loading admin config..");

            if (LootLockerAdminConfig.current == null)
            {
                LootLockerAdminConfig.current = Resources.Load("Config/LootLockerAdminConfig") as LootLockerAdminConfig;
            }

            if (LootLockerEndPointsAdmin.current == null)
            {
                LootLockerEndPointsAdmin.current = Resources.Load("Config/LootLockerEndPointsAdmin") as LootLockerEndPointsAdmin;
            }

            LootLockerBaseServerAPI.activeConfig = LootLockerAdminConfig.current;

            return(LootLockerEndPointsAdmin.current != null);
        }
Beispiel #2
0
        public static bool CheckInitialized()
        {
            if (!initialized)
            {
                Init();
                return(true);
            }

            try
            {
                LootLockerBaseServerAPI.activeConfig = LootLockerAdminConfig.current;
            }
            catch (Exception ex)
            {
                LootLockerSDKAdminManager.DebugMessage("Couldn't change activeConfig on ServerAPI to Admin config. " + ex, true);
            }

            return(true);
        }